Error Message "2013-Lost connection to MySQL server at waiting for initial communication packet', system error:0" Reported While Connecting to MySQL Databases
Symptoms
The message "2013-Lost connection to MySQL server at waiting for initial communication packet', system error:0" was reported while connecting to MySQL databases added as host resource.
Possible Causes
- Port 33306 or 3306 may not be enabled.
- There are multiple NICs for domain name resolution.
Solution
- Enable the communication between the local PC and the bastion host over port 33306 and communication between the bastion host and the data base server over port 3306.
- To address the issue of multiple NICs:
Log in to the bastion host background and run the following command and add the domain name: Domain name=IP address of the bastion host.
1
vim /usr/local/yunanbao/apache-tomcat-7.0.82/webapps/ROOT/WEB-INF/classes/domain.properties
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.