I logged out of the database and couldn't enter again.

Asked 2 years ago, Updated 2 years ago, 40 views

Once I logged out of SQL, I couldn't put it in the existing database anymore

The error is

ERROR2006(HY000):MySQL server has gone away
No connection.Trying to reconnect...
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 102
ERROR: 
Can't connect to the server 

That's it

mysql

2022-09-30 14:46

1 Answers

ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 102

The error message may indicate that the network is not connected.Check communication with the database.The following example shows how to use netcat to access the default MySQL port:

#nc-vz x.x.x.x 3306

// Message similar to the following if successful
Ncat: Connected to x.x.x.x:3306.


2022-09-30 14:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.