Connection Php MySQL PDO in localhost by ip

1

I have a PHP / MySQL system in which I connect via PDO on the localhost host, but I will need to put the IP of the server "xxx.xxx.xxx.xxx" instead of "localhost", the system works but very slow . I do not know what it can be, both Apache and MySQL are on the same machine. Any suggestions?

    
asked by anonymous 10.06.2016 / 22:58

1 answer

2

I was able to solve my problem.

In the MySQL settings I added:

skip-name-resolve

Stay where you need it

    
23.01.2017 / 19:09