thinkphp: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
来源:互联网 发布:泰牛程序员靠谱吗 编辑:程序博客网 时间:2024/05/18 02:43
thinkphp版本:3.2.3
php版本:5.4.45
mysql版本:5.5.49
看thinkphp版本要求http://www.kancloud.cn/manual/thinkphp/1681
php5.3版本以上的就可以
不是版本的问题
查看php扩展是否打开,经查看php.ini
extension前的分号全部都去掉了。。。
extension=php_pdo_mysql.dll已经打开
后仔细查找原来是扩展目录没有指定:
extension_dir = "./ext"
改正后thinkphp顺利运行
这个错误容易新手容易犯,改php配置文件的时候一定注意把该改的改全了
0 0
- thinkphp: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
- 解决ThinkPHP错误Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
- THINKPHP 错误:Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
- ThinkPHP错误:Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
- Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
- Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
- 解决Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
- 数据库连接错误 Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' 解决
- Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'错误解决方案
- thingkphp 错误 Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'解决
- ubuntu服务器linux部署thinkphp出现Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'解决方案
- PHP之——Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
- Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in
- PHP Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY
- magento -- 解决magento 1.4.0.1升级到1.4.1.1碰到的Undefined class constant 'COUPON_TYPE_NO_COUPON' 问题
- Use of undefined constant OCI_COMMIT_ON_SUCCESS
- Notice: Use of undefined constant
- Use of undefined constant FTP_BINARY
- Hadoop的HA机制(Zookeeper集群+Hadoop集群)配置记录
- ROC曲线的绘制
- 写给新手:网站改版的SEO因素!
- error: No resource identifier found for attribute ‘footerColor’ in package
- 几种Tab的实现方法
- thinkphp: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
- Android Service 使用总结
- STL Algorithms in Action
- 几个常用的操作系统进程调度算法
- 前台post提交表单时获取不到数据的原因
- iPhone键盘自定义及通知
- logback 常用配置详解(序)logback 简介
- python小模块--anydbm,shelve模块
- 最大流求最大权闭合图