Web server at 172.168.40.14
Mysql server at 172.168.40.13
There is a user@172.168.40.13 created at 172.168.40.13 MySQL server and it has plenty permissions on database inspeccion
Trying to connect from webserver
$this->pdo = new PDO('mysql:host=172.168.40.13;dbname=inspeccion;charset=utf8', 'user', 'pass');
results in the error:
SQLSTATE[HY000] [1044] Access denied for user 'user'@'172.16.40.14' to database 'inspeccion'
Why in the world is trying to connect to 172.16.40.14 when the code specifycally says conect to 172.16.40.13 ??
Thanks in advace