ERROR : MySQL server has gone away while running query

Posted by Rashmi Nama on Server Fault See other posts from Server Fault or by Rashmi Nama
Published on 2014-08-21T07:04:50Z Indexed on 2014/08/21 10:22 UTC
Read the original article Hit count: 237

Filed under:

I am using ubuntu 12.04 version. I am connecting properly to MariaDB from command prompt,I have a database named Dealer and have some tables in it but when i running any query, it gives an error.My steps as follow:

  1. mysql -uroot -proot
  2. use dealer;
  3. select * from dealer_outlet limit 1;

now error occours

ERROR 2006 (HY000): MySQL server has gone away No connection. Trying to reconnect... Connection id: 3 Current database: dealer

ERROR 2006 (HY000): MySQL server has gone away No connection. Trying to reconnect... ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused") ERROR: Can't connect to the server

© Server Fault or respective owner

Related posts about ubuntu-12.04