Could not create the upgrade info file ‘/var/lib/mysql/mysql_upgrade_info’ in the MariaDB Servers datadir, errno: 13

Whilst doing this:

mysql_upgrade -uusername -ppassword

You get this:

Could not create the upgrade info file '/var/lib/mysql/mysql_upgrade_info' in the MariaDB Servers datadir, errno: 13

Solution:

Run the above command as root.

Reference:
https://bugs.mysql.com/bug.php?id=37169

Share this article

Leave a Reply

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

Scroll to Top