Yiic Migrate

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:


			'connectionString' => 'mysql:host=localhost;port=3306;dbname=test',

			'emulatePrepare' => true,

			'username' => 'root',

			'password' => '',

			'charset' => 'utf8',


And after execitung, i get Error

mysql 5.6.10

PHP 5.3.21 (pdo_mysql in php.ini has connected)

What’s happen?


And in that, went back to the Kohana

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 ;]

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?