Do not know how to solve, so put his space on the server also installed a MySQL, to solve the problem, today there is a problem, you can not also install a MySQL on this server, Search:
PHP remote connection MySQL slow, sometimes remote connection to MySQL time 4-20 seconds, local connection MySQL normal, the main reason for this problem is that the default installation of MySQL turned on the DNS reverse resolution, under My.ini (Windows system) or my.cnf (Unix or Linux system) file under [mysqld] Add skip-name-resolve this sentence, save.
Start-"Run-" cmd--"net stop mysql-" net start mysql--"haha, success
My.ini path such as: D:\Program files\mysql\mysql Server 5.0\my.ini
This is the problem of MySQL, so the operation can not be used in the MySQL authorization table using the host name and only use IP.
The above describes the SQL Server database PHP remote connection MySQL database is a very slow solution, including the SQL Server database content, I hope the PHP tutorial interested in a friend helpful.