I am running MariaDB 10.0.24 on Ubuntu 16.04. I installed it via the xenial repo apt-get install mariadb-server
.
The root password doesn't seem to be working properly. I ran through these steps to set the password: http://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html but I get the following behaviour:
When I do sudo mysql
or sudo mysql -u root
it gets me into console without asking for password (why can I get in without password?)
When I do sudo mysql -u root -p
it asks me for a password but will let me into mysql console regardless of what string I enter. Why does it let me in when giving an incorrect password?
When I do mysql -u root
it asks me for password but will not accept the password I set following the instructions in the linked article.
Something is obviously not right. Does anyone know why its not asking for password from root at all and not accepting password from my user?