PHP remote connection MySQL database very slow solution _php tips
Source: Internet
Author: User
Do not know how to solve, so put his space on the server also installed a MySQL, to solve the problem, today has a problem, can not be installed on this server MySQL bar, Search:
PHP remote connection MySQL speed is slow, sometimes remote connection to the MySQL time of 4-20 seconds, local connection MySQL normal, the main reason for this problem is that the default installation of MySQL opened the DNS reverse resolution, in My.ini (Windows system) or my.cnf (Unix or Linux system) files under [mysqld] Add skip-name-resolve this sentence, save.
Start-"Run"-"cmd--" net stop mysql-"net start mysql--" Haha, successful
My.ini path such as: D:\Program files\mysql\mysql Server 5.0\my.ini
The original is the problem of MySQL, so the operation can not be used in the MySQL authorization table in the host name and can only use IP.
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.