cakephp - PDO::__construct(): [CORE\Cake\Model\Datasource\Database\Mysql.php -


im trying set cakephp, other messages cant fix error showing in title

pdo::__construct(): [core\cake\model\datasource\database\mysql.php

inside error message

pdo::_construct() - [internal], line ??
mysql::connect() - core\cake\model\datasource\database\mysql.php, line 162
dbosource::
_construct() - core\cake\model\datasource\dbosource.php, line 262
connectionmanager::getdatasource() - core\cake\model\connectionmanager.php, line 107
include - app\view\pages\home.ctp, line 100
view::_evaluate() - core\cake\view\view.php, line 945
view::_render() - core\cake\view\view.php, line 907
view::render() - core\cake\view\view.php, line 471
controller::render() - core\cake\controller\controller.php, line 948
pagescontroller::display() - app\controller\pagescontroller.php, line 73
reflectionmethod::invokeargs() - [internal], line ??
controller::invokeaction() - core\cake\controller\controller.php, line 486
dispatcher::_invoke() - core\cake\routing\dispatcher.php, line 187
dispatcher::dispatch() - core\cake\routing\dispatcher.php, line 162
[main] - app\webroot\index.php, line 111

can some1 me please, need >.<


database.php file:

class database_config {    public $default = array(      'datasource' => 'database/mysql',      'persistent' => false,      'host' => 'local',      'login' => 'cakeuser',      'password' => 'cakepassword',      'database' => 'cakedb',      'prefix' => '',      //'encoding' => 'utf8',    );    public $test = array(      'datasource' => 'database/mysql',      'persistent' => false,      'host' => 'localhost',      'login' => 'user',      'password' => 'password',      'database' => 'test_database_name',      'prefix' => '',      //'encoding' => 'utf8', );  }  

where did cake? cake file have may content error in itself. go dl cake on http://cakephp.org/ not other random website


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -