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

前端 未结 30 1028
离开以前
离开以前 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 02:56

    I FOUND THE SOLUTION

    Before firing the command : mysql_secure_installation

    • Step 1: sudo systemctl stop mariadb
    • Step 2: sudo systemctl start mariadb
    • Step 3: mysql_secure_installation

    Then it will ask root password and you can simply press Enter and set your new root password.

提交回复
热议问题