On Tue, 2002-10-08 at 18:42, [EMAIL PROTECTED] wrote: > On 9 Oct 2002, ddc_prueba wrote: > > > As I was having problems with mysql and already I had done nothing with > > it I decided to do a "rpm -e " to mysql packages and removed > > /var/lib/mysql directory as well. Then I reinstalled it... > > > > Problem is that there is no socket file now, so when I execute myql > > client it complaints: > > > > mysqladmin: connect to server at 'localhost' failed > > error: 'Can't connect to local MySQL server through socket > > '/var/lib/mysql/mysql.sock' (2)' > > Check that mysqld is running and that the socket: > > '/var/lib/mysql/mysql.sock' exists! > > > > You've probably checked already, but did you make sure that mysqld is > started? The socket is created when the mysql service starts up and > deleted after it ends. > > Try: > service mysql start
Stop Mysql .... then go to /var/lib/mysql and remove all mysql.socks= files... restart mysql and try it. I've had it leave old ones behind before and it caused this problem... restart mysql and see if the file gets recreated. It should James > > To start on boot: > chkconfig --level 2345 mysql on > > > > How can I make the socket file I am missing?? (Have googled around and > > have seen this is even in faqs, but they don't explain how a socket file > > is done). > > > > > > > > > > > ---- > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
