mysqladmin with MariaDB returns “Access denied for user ‘root’@’localhost’ (using password: NO)”

When I want to reload my MariaDB server, I receive the below error:

/usr/bin/mysqladmin: connect to server at ‘localhost’ failed
error: ‘Access denied for user ‘root’@’localhost’ (using password: NO)’

The solution is to provide the root’s password in the file `/etc/mysql/debian.cnf` and then the error is gone!

Leave a Reply

Your email address will not be published. Required fields are marked *

*