开发者

Reinstalling MySQL on Ubuntu

开发者 https://www.devze.com 2023-01-27 22:59 出处:网络
MySQL is broken on my Ubuntu OS. It throws the following e开发者_运维技巧rror: mysql -u root ERROR 2002 (HY000): Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (2

MySQL is broken on my Ubuntu OS. It throws the following e开发者_运维技巧rror:

mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I wasn't able to repair it. So I want to reinstall MySQL. But I didn't find an effective way. I used sudo apt-get remove mysql-server-5.1,

But after the re-installation, it is still throwing the same error. Any help?


Restart mysqld.


I don't know how I change the passwrod,this may occur when i use some rails app, in fact i have set a password for mysql,but when i execute rails rake:db:schema:crate, seems it set the password empty

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号