TP3 Undefined class constant ' Mysql_attr_init_c.

Source: Internet
Author: User
Phpinfo (); There is a configuration file (php.ini) and a loaded configuration file whose precedence is higher than the former! If the latter is null, the former will prevail; this is the Apache read php.ini location, not read the PHP installation directory. Loaded Configuration File This value can be modified by httpd.conf's Phpinidir parameter

Thinkphp3.2, in common, the config.php configuration of the constant connection to MySQL
But show:
Undefined class constant ' Mysql_attr_init_command

This is mostly due to the failure to connect the php_pdo_mysql.dll extension of ext in the PHP directory

Httpd.conf in Apache can read the location of php.ini

But the php.ini load extension is easy to overlook, and the No. 734 line in php5.6 PHP.ini has
The directory under Windows extension, remove the semicolon, and then write the location of ext extension
Notice what is in the path? Of

TP3 Undefined class constant ' Mysql_attr_init_c.

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.