oracle linux8使用yum安装mysql后发现php的mysql支持仍然没有,找了很多资料都没提到这一点。打算重新编译安装但却的依赖太多,还有依赖的依赖,甚为麻烦。突然想到yum安装时php-fpm需要单独安装的情况,会不会mysql支持也可以单独安装。
yum search php
显示
php.aarch64 : PHP scripting language for creating dynamic web sites
mlt-php.aarch64 : PHP package to work with MLT
perl-PHP-Serialization.noarch : Converts between PHP's serialize() output and
: the equivalent Perl structure
php-adodb.noarch : Database abstraction layer for PHP
php-bcmath.aarch64 : A module for PHP applications for using the bcmath
: library
php-cli.aarch64 : Command-line interface for PHP
php-common.aarch64 : Common files for PHP
php-dba.aarch64 : A database abstraction layer module for PHP applications
php-dbg.aarch64 : The interactive PHP debugger
php-devel.aarch64 : Files needed for building PHP extensions
php-embedded.aarch64 : PHP library for embedding in applications
php-enchant.aarch64 : Enchant spelling extension for PHP applications
php-fpm.aarch64 : PHP FastCGI Process Manager
php-gd.aarch64 : A module for PHP applications for using the gd graphics
: library
php-gmp.aarch64 : A module for PHP applications for using the GNU MP library
php-intl.aarch64 : Internationalization extension for PHP applications
php-json.aarch64 : JavaScript Object Notation extension for PHP
php-kolabformat.aarch64 : PHP bindings for libkolabxml
php-ldap.aarch64 : A module for PHP applications that use LDAP
php-mbstring.aarch64 : A module for PHP applications which need multi-byte
: string handling
php-mysqlnd.aarch64 : A module for PHP applications that use MySQL databases
php-odbc.aarch64 : A module for PHP applications that use ODBC databases
php-pdo.aarch64 : A database access abstraction module for PHP applications
php-pear.noarch : PHP Extension and Application Repository framework
php-pear-Cache-Lite.noarch : Fast and Safe little cache system for PHP
php-pecl-rrd.src : PHP Bindings for rrdtool
php-pecl-xdebug.src : PECL package for debugging PHP scripts
php-pgsql.aarch64 : A PostgreSQL database module for PHP
php-process.aarch64 : Modules for PHP script using system process interfaces
php-recode.aarch64 : A module for PHP applications for using the recode
: library
php-snmp.aarch64 : A module for PHP applications that query SNMP-managed
: devices
php-soap.aarch64 : A module for PHP applications that use the SOAP protocol
php-xml.aarch64 : A module for PHP applications which use XML
php-xmlrpc.aarch64 : A module for PHP applications which use the XML-RPC
: protocol
php-xmpphp.noarch : XMPPHP is the successor to Class.Jabber.PHP
python-calcephpy-doc.noarch : Documentation files for python-calcephpy
remctl-php.aarch64 : PHP interface to remctl
sphinx-php.aarch64 : PHP API for Sphinx
uwsgi-plugin-php.aarch64 : uWSGI - Plugin for PHP support
============================= Name Matched: php =============================
php-IDNA_Convert.noarch : Provides conversion of internationalized strings to
: UTF8
php-geshi.noarch : Generic syntax highlighter
php-opcache.aarch64 : The Zend OPcache
php-pear-Auth-SASL.noarch : Abstraction of various SASL mechanism responses
php-pear-CodeGen.noarch : Framework to create code generators that operate on
: XML descriptions
php-pear-CodeGen-PECL.noarch : Tool to generate PECL extensions from an XML
: description
php-pear-Date.noarch : Date and Time Zone Classes
php-pear-HTTP-Request.noarch : Provides an easy way to perform HTTP requests
php-pear-Mail.noarch : Class that provides multiple interfaces for sending
: emails
php-pear-Net-SMTP.noarch : Provides an implementation of the SMTP protocol
php-pear-Net-Socket.noarch : Network Socket Interface
php-pear-Net-URL.noarch : Easy parsing of URLs
php-pear-Text-Diff.noarch : Engine for performing and rendering text diffs
php-pecl-apcu.aarch64 : APC User Cache
php-pecl-apcu-devel.aarch64 : APCu developer files (header)
php-pecl-zip.aarch64 : A ZIP archive management extension
phpldapadmin.noarch : Web-based tool for managing LDAP servers
python3-calcephpy.aarch64 : Astronomical library to access planetary
: ephemeris files
=========================== Summary Matched: php ============================
lighttpd-fastcgi.aarch64 : FastCGI module and spawning helper for lighttpd
: and PHP configuration
果然是有单独的包,于是
yum install php-mysqlnd
之后phpinfo就能找到mysql的相关内容了。
评论
本文评论功能已关闭。