mariadb剧本安装后自动重启不了,飞要一次手动重启,这对于重要业务来说是致命的
今天遇到的错误:[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
首先,找到mariadb报错日志文件/var/log/mariadb/mariadb.log
vim /var/log/mariadb/mariadb.log
为了找到错误原因:编辑这个日志文件,将多加写空行。使其后报错单独呈现
重启机器:reboot
发现的第一个报错:
[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
按照所给提示:run mysql_upgrade
执行