Jakiro
(Out)
March 6, 2013, 6:58pm
1
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
mysql 5.6.10
PHP 5.3.21 (pdo_mysql in php.ini has connected)
What’s happen?
Thanks
Jakiro
(Out)
March 17, 2013, 10:29pm
2
And in that, went back to the Kohana
Jakiro
(Out)
March 20, 2013, 7:18pm
4
jacmoe:
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 ;]
drylko
(Pawel Drylo)
March 20, 2013, 7:43pm
5
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?