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

前端 未结 30 1066
离开以前
离开以前 2020-11-22 02:25

I installed LAMP on Ubuntu 12.04 LTS (Precise Pangolin) and then set root password on phpMyAdmin. I forgot the password and now I am unable to login. When I try to chan

30条回答
  •  抹茶落季
    2020-11-22 03:02

    I also facing same problem it will be occur if your mysql server is not running by default it will again stop after some sec so you again run ($ sudo service mysql start ) command you can change if know.

    for that use command

    $ sudo service mysql start   
    

    (put user password if required because we use sudo ) and then run

    $ sudo mysql -u root -p          (put user password if required )
    

    now you got your database

提交回复
热议问题