wiki:mariadb_reenable_password_authentication
This is an old revision of the document!
Table of Contents
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 14:53 by antisa