I had installed mysql server on my laptop when there was no lan.Now i have lan and can't connect to laptop because the server was set up as localhost.
here is mysql> \s
Code:
mysql> \s
--------------
mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (x86_64) using readline 6.1
Connection id: 74
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.1.49-1ubuntu8.1 (Ubuntu)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/run/mysqld/mysqld.sock
Uptime: 3 hours 6 min 14 sec
Threads: 1 Questions: 524 Slow queries: 0 Opens: 245 Flush tables: 1 Open tables: 49 Queries per second avg: 0.46
--------------
I guess i have to convert the local(127.0.0.1)to lan ip address.