After the database is separated, the remote mysql homepage is very slow.
Source: Internet
Author: User
After the database is separated, the remote mysql homepage is opened slowly. The original project and database are both opened normally. now the database and project are separated, and the project is on a server, the database is on a server, and the project remotely accesses the database. Then I use my computer to access the project. it takes 4-10 seconds to open the home page. The remote mysql homepage is very slow after the database is detached from the Internet.
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? PHP mysql web shared:
------ 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.
------ Solution --------------------
Remote access to the database is a problem
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.