Help Center/ Cloud Bastion Host/ FAQs/ Troubleshooting/ SSO O&M Faults/ Error Message "2013-Lost connection to MySQL server at waiting for initial communication packet', system error:0" Reported While Connecting to MySQL Databases
Updated on 2024-09-24 GMT+08:00

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.

    vim /usr/local/yunanbao/apache-tomcat-7.0.82/webapps/ROOT/WEB-INF/classes/domain.properties