View previous topic :: View next topic |
Author |
Message |
dnamroud Guru
Joined: 01 Jun 2005 Posts: 346 Location: Canada
|
Posted: Thu Aug 17, 2006 6:44 pm Post subject: ERROR 2013: Lost connection to MySQL server during query |
|
|
Hello
I am trying to login thrun my mysql, when i use the 127.0.0.1, I got the following message
Quote: |
test mysql # mysql -u mona -h 127.0.0.1 -p
Enter password:
ERROR 2013: Lost connection to MySQL server during query
|
However if i use localhost or system's IP or from outside i am able to login...
Quote: |
test mysql # mysql -u mona -h localhost -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6 to server version: 4.0.25
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> exit
Bye
|
more info:
Quote: |
test mysql # ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.031 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.011 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.009 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.009 ms
test mysql # ifconfig lo
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:551 errors:0 dropped:0 overruns:0 frame:0
TX packets:551 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:31493 (30.7 Kb) TX bytes:31493 (30.7 Kb)
|
Why i am getting this error...
Thank you
Dany |
|
Back to top |
|
|
qriff n00b
Joined: 04 Dec 2003 Posts: 73
|
Posted: Thu Feb 01, 2007 5:20 pm Post subject: |
|
|
Same solution solves the re-login problem with mod_auth_mysql... |
|
Back to top |
|
|
|