Page 1 of 1
CDbConnection failed to open the DB connection: could not find driver Help
#1
Posted 23 April 2011 - 06:49 PM
I am working on Windows 7 and MYsql
and this is my first time to use yii.
when i try to access Model generator i have this error
CDbConnection failed to open the DB connection: could not find driver
please i need help very quickly
and this is my first time to use yii.
when i try to access Model generator i have this error
CDbConnection failed to open the DB connection: could not find driver
please i need help very quickly
#2
Posted 23 April 2011 - 07:48 PM
Marina, on 23 April 2011 - 06:49 PM, said:
I am working on Windows 7 and MYsql
and this is my first time to use yii.
when i try to access Model generator i have this error
CDbConnection failed to open the DB connection: could not find driver
please i need help very quickly
and this is my first time to use yii.
when i try to access Model generator i have this error
CDbConnection failed to open the DB connection: could not find driver
please i need help very quickly
When generate project structure by yii command, did you change db connection in protected/config before access model generator ?
Dinh Thuong
Yahoo: dinhthuong02@yahoo.com
Skype: dinhthuong02
Yahoo: dinhthuong02@yahoo.com
Skype: dinhthuong02
#4
Posted 23 April 2011 - 08:17 PM
What does the requirement script say?
Make sure that you have installed the necessary php extensions.
Make sure that you have installed the necessary php extensions.
"Less noise - more signal"
#5
Posted 27 April 2011 - 06:03 AM
The error says it all really, it cannot make the connection to your database because it cannot find the database driver. Either install the missing driver, or you may have the connectionID configured incorrectly in the config file...
#6
Posted 12 May 2011 - 08:23 PM
I am using sqlite. I had same error. I uncommented line: extension=php_pdo_sqlite.dll in file php.ini.
#8
Posted 22 May 2011 - 01:16 PM
Also check this line of code in main.php
'connectionString' => '[b]mysql[/b]:host=localhost;dbname=lms',
#9
Posted 06 November 2011 - 04:53 PM
I had this same problem and found this thread.. here's what my problem was
My PHP installed & configured this by default >>
extension=php_sqlite.dll
Yii wants this
extension=php_pdo_sqlite.dll
Best
My PHP installed & configured this by default >>
extension=php_sqlite.dll
Yii wants this
extension=php_pdo_sqlite.dll
Best
#10
Posted 26 February 2012 - 02:06 PM
I have the same problem and use MySQL.
In php.ini I have both enabled
extension=php_mysql.dll
and
extension=php_pdo_mysql.dll
Have I disable "extension=php_mysql.dll" ?
In php.ini I have both enabled
extension=php_mysql.dll
and
extension=php_pdo_mysql.dll
Have I disable "extension=php_mysql.dll" ?
vdance, on 06 November 2011 - 04:53 PM, said:
I had this same problem and found this thread.. here's what my problem was
My PHP installed & configured this by default >>
extension=php_sqlite.dll
Yii wants this
extension=php_pdo_sqlite.dll
Best
My PHP installed & configured this by default >>
extension=php_sqlite.dll
Yii wants this
extension=php_pdo_sqlite.dll
Best
#11
Posted 14 January 2013 - 07:26 PM
sparnauskis, on 26 February 2012 - 02:06 PM, said:
I have the same problem and use MySQL.
In php.ini I have both enabled
extension=php_mysql.dll
and
extension=php_pdo_mysql.dll
Have I disable "extension=php_mysql.dll" ?
In php.ini I have both enabled
extension=php_mysql.dll
and
extension=php_pdo_mysql.dll
Have I disable "extension=php_mysql.dll" ?
check if you've configured database connection in your protected/config/console.php.
Thanks
Ashish Tyagi
Ashish Tyagi
Share this topic:
Page 1 of 1

Help


















