mysql - PHP SQLSTATE[HY000] [1045] Access denied for user Laravel -
i'm working on project (php laravel 4.2) using svn team, after checked out repository on disk (local), , tried open link localhost/mylaravel
, got error
pdoexception (1045) sqlstate[hy000] [1045] access denied user 'dbusername'@'xx.xxx.xx.xxx' (using password: yes)
note: changed real username , host ip
the database not locally, it's remotely hosted online. project on localhost.
config/database.php
'connections' => array( 'sqlite' => array( 'driver' => 'sqlite', 'database' => __dir__.'/../database/production.sqlite', 'prefix' => '', ), /** * remote database connection */ 'mysql' => array( 'driver' => 'mysql', 'host' => 'hostip:port', 'database' => 'mydatabasename', 'username' => 'mydbusername', 'password' => 'root123456', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', ), 'pgsql' => array( 'driver' => 'pgsql', 'host' => 'localhost', 'database' => 'forge', 'username' => 'forge', 'password' => '', 'charset' => 'utf8', 'prefix' => '', 'schema' => 'public', ), 'sqlsrv' => array( 'driver' => 'sqlsrv', 'host' => 'localhost', 'database' => 'database', 'username' => 'root', 'password' => '', 'prefix' => '', ), )