Thinkphp3.2中,在common的config.php配置连接mysql的常量
但显示:
Undefined class constant ‘MYSQL_ATTR_INIT_COMMAND
这种原因多数是因为未能连接PHP目录中ext的php_pdo_mysql.dll扩展
apache中的httpd.conf可以读取php.ini的位置
但php.ini加载扩展容易忽视,在php5.6中php.ini的第734行有
windows下扩展的目录,去掉分号;再写上ext扩展的位置
注意路径中是?的/
TP3 Undefined class constant ‘MYSQL_ATTR_INIT_C..
原文:http://blog.51cto.com/13757802/2139424