Yii “CDbConnection failed to open the DB connection: could not find driver"解决办法
来源:互联网 发布:瓦尔登湖 知乎 译本 编辑:程序博客网 时间:2024/06/05 19:54
在按照Yii文档做自己的第一个例子的时候,在创建Model的页面出现“CDbConnection failed to open the DB connection: could not find driver"错误,其中数据库自己使用的sqlite数据库。
出现这个问题后突然想起在安装完Yii时,文档里给了一个测试页面(http://localhost/yii/requirements/index.php),可以查看Yii的依赖检查,再次查看这个页面发现“PDO SQLite extension”的检查结果是Warning,于是想是不是自己没有按照php的sqlite pdo包,于是使用以下命令安装了sqlite包并重启了apache服务
出现这个问题后突然想起在安装完Yii时,文档里给了一个测试页面(http://localhost/yii/requirements/index.php),可以查看Yii的依赖检查,再次查看这个页面发现“PDO SQLite extension”的检查结果是Warning,于是想是不是自己没有按照php的sqlite pdo包,于是使用以下命令安装了sqlite包并重启了apache服务
sudo apt-get install php5-sqlite php-pear php-dbsudo /etc/init.d/apache2 restart再次访问http://localhost/yii/requirements/index.php页面,发现其中的Waring已经Passed状态了。再次访问创建Model页面,也可以创建Model了。
- Yii “CDbConnection failed to open the DB connection: could not find driver"解决办法
- yii框架:CDbConnection failed to open the DB connection: could not find driver的解决办法
- Yii中使用gii连接数据库报错CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1045] Access denied
- The security settings could not be applied to the database because the connection has failed w
- Could not connect to '192.168.80.145' (port 22): Connection failed的解决办法(远程连不上xshell)
- Could not connect to '192.168.80.145' (port 22): Connection failed的解决办法(远程连不上xshell)
- Could not find/open
- 运行安卓报Could not find ****.apk和Failed to load ****dx.jar错的解决办法
- PHP数据库连接失败--could not find driver 解决办法
- PHP数据库连接失败--could not find driver 解决办法
- php artisan migrate : [PDOException] could not find driver解决办法
- PDO连接数据库提示could not find driver解决办法
- PHP数据库连接失败--could not find driver 解决办法 .
- Could not create pool connection. The DBMS driver exception was: The Network Adapter could not estab
- This application failed to start because it could not find or load the Qt platform plugin
- This application failed to start because it could not find or load the Qt platform plugin “...
- Application failed to start because it could not find or load the QT platform plugin “windows”
- This application failed to start because it could not find or load the Qt platforms plugins
- 链表选择排序
- pcb封装
- 用CSS3实现类似苹果桌面的有趣抖动效果
- Effective c++学习笔记——条款11:在operateor=中自我赋值
- 认真看书,先不做题了!!
- Yii “CDbConnection failed to open the DB connection: could not find driver"解决办法
- 数据库复习与内置函数
- PKU ACM 1012 Joseph 约瑟夫
- vb实现获取指定目录内的所有文件(包括子目录)
- java内存
- 数分?分数!
- Linux集群--简单实现LVS-DNAT及LVS-DR
- Vs 2008 解决方案的目录结构设置和管理
- ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance