Unable to load ' pdo_mysql ' because the PDO module is required.
PHP warning:cannot Load module ' pdo_mysql ' because required module ' PDO ' is not loaded in Unknown on line 0
Steps
1. Enter the extension library ext under the Source installation library and enter the extension library to be installed as MySQL
/USR/LOCAL/PHP/BIN/PHPIZB Test
[Email protected] mysqlnd]#/usr/local/php/bin/phpize
Configuring for:
PHP Api version:20100412
Zend Module Api no:20100525
Zend Extension Api no:220100525
If this is the case, you can
Run the Configure file that you just generated
Phpize rule: in which directory to run the Phpize file, a configure file will be generated in that directory.
[Email protected] mysqlnd]#/configure--with-php-config=/usr/local/php/bin/php-config--with-mysqlnd
The key here is to tell the MySQL client's location via the--with-mysql parameter. This will generate mysql.so that can be passed. /configure--help View
[[email protected] mysqlnd]# make && make install
It's a normal reaction.
Installing Shared extensions:/usr/local/lib/php/extensions/no-debug-non-zts-20100525/
Installing header files:/usr/local/include/php/
Go to the generated directory to locate the extended copy to the desired place in the php.ini configuration
Installing the PHP Extension Library