After installing PHP, add the module pdo_mysql

Source: Internet
Author: User

Under Windows, is the dynamic link library. Dll,linux is. So.

Under Linux, assume that PHP is installed in the/usr/local/php,php source package on the/usr/local/php-5.6.15

Go to PHP source package to find the extension

# Cd/usr/local/php-5.6.15/ext/pdo_mysql

PHP Extended Compilation environment

#/usr/local/php/bin/phpize

#./configure--with-php-config=/usr/local/php/bin/php-config--with-pdo-mysql=/usr/local/mysql

# Make && make install

Modify the php.ini file

# Vi/usr/local/php/lib/php.ini

Add a row and join the Pdo_mysql module

Extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so

Restart PHP-FPM

See if Phpinfo () contains MySQL in PDO

Other modules are also added as such.

After installing PHP, add the module pdo_mysql

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.