Guys, I'm going to freak out, come on, help me.

Source: Internet
Author: User
Everybody, I'm going crazy, come on, help me out.
I do the local program, connect the database everything is normal, but now to people that space on the report such a mistake, others are Linux system, the error is as follows:
[SIZE=13PX] [B]mysql_connect () [Function.mysql-connect]: Lost connection to MySQL server at ' reading initial communication packet ', SY Stem error:111 [/b][/size]
We see hope to help me as soon as possible, or I am finished, they do not want this system, I will white, thank you.

------Solution--------------------
Google a bit. http://www.dzhope.com/post/538/
------Solution--------------------
Look at the database is normal and not the table structure and you test environment like?
------Solution--------------------
There is a problem with your database connection

Refer to the following:


A remote connection to the MySQL server under Debian appears: Lost connection to MySQL server at ' reading initial communication packet ' error, the user right has been set to allow any host connection. In fact, the problem is in the configuration of MySQL, in the my.cnf, there is a bind-address=127.0.0.1, the meaning is only to listen to local connections, the note after the restart of the MySQL service can be successfully connected to the remote server. Communication packet ' ERROR, user rights have been set to allow any host connection. In fact, the problem is in the configuration of MySQL, in the my.cnf, there is a bind-address=127.0.0.1, the meaning is only to listen to local connections, the note after the restart of the MySQL service can be successfully connected to the remote server.
------Solution--------------------
You write a test PHP to see the database is not normal
------Solution--------------------
If you can't change the server, it's probably not going to happen. People don't let you remotely link
------Solution--------------------
Ask the next person's space quotient database to connect to the IP account password. Modify your configuration file according to the parameters provided by the space provider.
------Solution--------------------
Probably the database server name is wrong.
You check the documentation that the vendor gave you when you purchased the space
  • 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.