

When the MySQL Server was crashed restart it and investigate more why it was crashed. Select the Advanced tab and increase the Socket Timeout value.

#Navicat for mysql 2026 how to
Navicat How to edit Navicat preferences: Control-click on a connection item and select Connection Properties > Edit Connection. Save the settings, quite MySQL Workbench and reopen the connection. When your session was killed or the MySQL Server was restarted or stopped, try to find out who killed your session and why. Look for the MySQL Session section and increase the DBMS connection read time out value. In this case possibly max_allowed_packet was too small. There it should be visible if the MySQL Server crashed or was stopped.ĮRROR 2006 (HY000) at line 7776: MySQL server has gone away Then you have to look into the MySQL Server error log (typically at /var/lib/mysql/server.err). When the MySQL Server crashed or was stopped it looks like this:.You can see this for example with the following command: mysql> SHOW GLOBAL STATUS LIKE 'Aborted_clients' When does this MySQL error message happen? This means either that you connection has been killed, that the connection got lost or that the MySQL server died or was stopped. How does the MySQL error message look like? mysql> SELECT * FROM er LIMIT 1 ĮRROR 2006 (HY000): MySQL server has gone away Message: Unknown MySQL server host '%s' (%d) Message: Can't connect to MySQL server on '%s' (%d) Start the MySQL Server if it is not running or specify the path and the name of the socket file correctly. Try to find out if your MySQL Server is runnng on your local machine and if the socket file exists. This MySQL error happens when your MySQL Server is not running (locally) or when the socket file is not at the location you have specified or where the default points to. OS error code 2: No such file or directory More information you can find with the command: shell> perror 2

This MySQL error message means, that your MySQL Client utily cannot connect to the Server using the specified socket file. How does the MySQL error message look like? shell> mysql -user=root -socket=/tmp/mysql.sockĮRROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Message: Can't connect to local MySQL server through socket '%s'
