I am trying to configure MariaDB (10.0.29) on Ubuntu (04.16.02). After I installed it and started the process ( sudo service mysql start), I can not log in as root, although I initially set the password to empty.
Those. mysql -u rootwill deprive me of access. I logged in through sudo mysqland checked the user table, i.e. select user, password, authentication_string from mysql.userand as expected:
+---------+----------+-----------------------+
| User | password | authentication_string |
+---------+----------+-----------------------+
| root | | |
+---------+----------+-----------------------+
I also created a new user, i.e. create user 'test'@'localhost' identified by '';, and when I try to do mysql -u test(blank password), it works as expected and logs me in.
The user table looks like this:
+---------+----------+-----------------------+
| User | password | authentication_string |
+---------+----------+-----------------------+
| root | | |
| test | | |
+---------+----------+-----------------------+
So, can someone tell me why I cannot log in as rootwith an empty password, but can log in as test?