Solved MariaDB cannot run mysql_upgrade

Hi,

I just ran pkg upgrade on my database jail and when I run mysql_upgrade, I get the following error message:
Code:
Version check failed. Got the following error when calling the 'mysql' command line client
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
FATAL ERROR: Upgrade failed
When I set my database server, I renamed the root user to dbadmin..
I also tried /usr/local/bin/mysql_upgrade -u dbadmin and got
Code:
Version check failed. Got the following error when calling the 'mysql' command line client
ERROR 1045 (28000): Access denied for user 'dbadmin'@'localhost' (using password: NO)
FATAL ERROR: Upgrade failed
select user,host from mysql.user;
Code:
+-----------------------+----------------------------+
| user                  | host                       |
+-----------------------+----------------------------+
| dbadmin               | 127.0.0.1                  |
| dbadmin               | ::1                        |
| dbadmin               | localhost                  |
+-----------------------+----------------------------+
Do I need to rename the root user again or is there an easier way to work around this problem?

Thank you
 
Back
Top