I want to secure mysql by setting root password. I reset root password successfully:
MariaDB [(none)]> select Host, User, Password from mysql.user; +---------
I found I needed to change this:
UPDATE mysql.user SET plugin = 'auth_socket' WHERE user = 'root' AND host = 'localhost';
To
UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE user = 'root' AND host = 'localhost';
That is the plugin for a password AFAICT.