开发 / 默认 · April 4, 2022 0

解决mariadb数据库“Could not open mysql.plugin table. ”错误

Table of Content

mariadb数据库“Could not open mysql.plugin table. ”错误,应该是mysql和mariadb不兼容导致的 。
对于 Arch Linux系统,可以使用以下方法解决

#查看状态
systemctl status mariadb
#关闭数据库
systemctl stop mariadb
#删除
rm -R /var/lib/mysql/*
#重新生成
mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
#重启数据库
systemctl start mariadb

相关链接
https://stackoverflow.com/questions/34198735/could-not-open-mysql-plugin-table-some-plugins-may-be-not-loaded

%d bloggers like this: