sxlnok
(Sxlnok)
1
WIN环境
'db'=>array(
'class'=>'CDbConnection',
'connectionString'=>'mysql:host=localhost;dbname=test',
'username'=>'root',
'password'=>'123123',
),
数据库测试连接正常
命令创建提示:
Internal server error
include<pdo.php> failed to open stream: no such file or directory
an internal error occurred while the web server was processing your request
please contact the webmaster to report this proble
请求帮助
qiang
(Qiang Xue)
2
你的命令行PHP没有配置好PDO扩展(以及相应数据库的PDO扩展)。
sxlnok
(Sxlnok)
3
我用的是phpnow套件
我运行的创建模块命令
E:\usr\htdocs\yii\framework>yiic.bat shell E:\usr\htdocs\yii\index.php
extension=php_pdo.dll
extension=php_pdo_mysql.dll
pdo扩展是打开的
命令行怎么配
qiang
(Qiang Xue)
5
你用php -c path/to/php.ini来执行看看。很有可能你的命令行PHP用的是一个不对的php.ini