Thread: MySQL problem
View Single Post
  #3  
Old 14th February 2013, 16:13
dimas dimas is offline
Senior Member
 
Join Date: Jul 2006
Posts: 122
Thanks: 7
Thanked 25 Times in 6 Posts
Default

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/mysqld.pid 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