CentOS installation Pdo_mysql Extension unsuccessful

Source: Internet
Author: User
centospdophp installing PDO MySQL

Environment: Centos 7
Installing the Pdo_mysql extension on a PHP5.4.16 basis is unsuccessful.

My Follow the steps:
1) Find the Pdo_mysql under the ext. PHP installation package;
2) Perform]$ phpize
3) Execution: $./configure--with-php-config=/usr/bin/php-config--with-pdo-mysql=/var/lib/mysql
4) Error message:
Checking for mysql_config ... not found
Checking for MySQL install under/var/lib/mysql ... can not find it
Configure:error:Unable to find your MySQL installation

I'm not going to try any of these paths down here.

Whereis MySQL

MySQL:/usr/bin/mysql/usr/lib64/mysql/usr/include/mysql/usr/share/mysql/usr/share/man/man1/mysql.1.gz

which MySQL

/bin/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.