I am trying to connect my Cakephp project (2.3.8) to a remote mySQL database. My connection the MySQL command line on the same computer
mysql -u testconection -p -h someserver.somewhere.net
works perfectly.
But this connection in database.php:
public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'someserver.somewhere.net',
'login' => 'testconnection',
'password' => 'testpassword',
'database' => 'db10',
'prefix' => '',
//'encoding' => 'utf8',
)
fails with this error in Cake:
SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'someserver.somewhere.net' (13)
according to the the docs error 13 is a permission denied error.
Thanks