Yii Framework Forum: Yiic Migrate - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yiic Migrate Rate Topic: -----

#1 User is offline   Jakiro 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 05-March 13
  • Location:Tomsk

Posted 06 March 2013 - 01:58 PM

Hi all!
The Wondering moment: i created migration file, witch creating simple table in DB.
Executing yiic migrate. yiic witch located into protected
In protected/config/console.php changed db settings:
		'db'=>array(
			'connectionString' => 'mysql:host=localhost;port=3306;dbname=test',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '',
			'charset' => 'utf8',
		),

And after execitung, i get Error

Quote

exception 'CDbException' with message 'CDbConnection failed to open the DB conne
ction: could not find driver' in D:\OpenServer\domains\framework\db\CDbConnectio
n.php:381

mysql 5.6.10
PHP 5.3.21 (pdo_mysql in php.ini has connected)
What's happen?
Thanks
0

#2 User is offline   Jakiro 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 05-March 13
  • Location:Tomsk

Posted 17 March 2013 - 05:29 PM

And in that, went back to the Kohana
0

#3 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 17 March 2013 - 05:51 PM

Haha - loser. ;)
"Less noise - more signal"
1

#4 User is offline   Jakiro 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 05-March 13
  • Location:Tomsk

Posted 20 March 2013 - 02:18 PM

View Postjacmoe, on 17 March 2013 - 05:51 PM, said:

Haha - loser. ;)

mb but
return array
(
	'default' => array
	(
		'type'       => 'MySQL',
		'connection' => array(		
			'hostname'   => 'localhost',
			'database'   => 'kohana',
			'username'   => 'root',
			'password'   => FALSE,
			'persistent' => FALSE,
		),
		'table_prefix' => '',
		'charset'      => 'utf8',
		'caching'      => FALSE,
	),

);

and profit ;]
1

#5 User is offline   drylko 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 86
  • Joined: 13-September 09
  • Location:Poland

Posted 20 March 2013 - 02:43 PM

PHP usually has more php.ini's depending on SAPI you are using (apache, cli or other). Are you sure you have mysql pdo extension enabled in cli's php.ini?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users