SQL Server database PHP remote connection MySQL database very slow workaround

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 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.

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.