User Tools

Site Tools


wiki:mariadb_reenable_password_authentication

This is an old revision of the document!


mariadb reenable password authentication

Disable unix socket authentication

update mysql.user set plugin='' where user='root';
flush privileges;

Update password

update mysql.user set password=password('yourpasswd') where user='root';

or run mysql_secure_installation from command line and set password.

Check

select user,host,password,plugin from mysql.user;
MariaDB [(none)]> select user,host,password,plugin from mysql.user;
+------+-----------+-------------------------------------------+--------+
| user | host      | password                                  | plugin |
+------+-----------+-------------------------------------------+--------+
| root | localhost | *C3F43AFF2CF6AACD60EE1AAB1B48ADB3066E0EA4 |        |
+------+-----------+-------------------------------------------+--------+

Tested on

  • Debian 10.8
  • 10.3.27-MariaDB-0+deb10u1

See also

References

wiki/mariadb_reenable_password_authentication.1615215196.txt.gz · Last modified: 2021/03/08 15:53 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki