Thread: MySQL problem
View Single Post
Old 14th February 2013, 17:13
dimas dimas is offline
Senior Member
Join Date: Jul 2006
Posts: 125
Thanks: 7
Thanked 27 Times in 8 Posts

Dear Till, thank you, but this is what is happening:

root@server2:~# /etc/init.d/mysql stop
Stopping MySQL database server: mysqld.
root@server2:~# mysqld_safe –skip-grant-tables &
[1] 5790
root@server2:~# 130214 19:07:47 mysqld_safe Logging to syslog.
130214 19:07:47 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130214 19:07:52 mysqld_safe mysqld from pid file /var/run/mysqld/ ended

- and no prompt appears (I waited a long time)

If I try to input the next command from another shell window, I get:

root@server2:~# mysql -u root mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Reply With Quote