After the database is separated, the remote mysql homepage is very slow. PHP mysql web
In the past, the project and the database were both connected normally. now the database and the project are separated. The project is on a server, and the database is on a server, the project accesses the database remotely. Then I use my computer to access the project. it takes 4-10 seconds to open the home page. I have found many ways to access the internet. add it in my. ini.
[Mysqld]
Skip-name-resolve
The effect is not obvious. Is there any other way to disable access?
Reply to discussion (solution)
It may be that the mysql version is earlier than 5.5.
Persistent connection
Of course, you also need to pay attention to the network performance. do not monitor both ends of the network under the firewall.
5.5 or more? The firewall should not.
Remote access to the database is a problem