ERROR 1524 (HY000): Plugin ‘auth_socket’ is not loaded How to Fix

Mysql was installed in Ubuntu and this error occurred when I opened it:

mysql -uroot -p
enter password:
ERROR 1524 (HY000): Plugin ‘auth_socket’ is not loaded

A face overwhelmed
baidu to only on stackoverflow. It’s a little weird to find something that says’ unix_socket ‘
https://stackoverflow.com/questions/37879448/mysql-fails-on-mysql-error-1524-hy000-plugin-auth-socket-is-not-loaded
And twice, every time I want to use the database, this problem always comes up.
solution:

sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start

Just restart it and you can use it

Read More: