MySQL启动报错Table'mysql.plugin'doesn'texist

启动报错:
  • /opt/szy/bin/MySQLd: Table \'mysql.plugin\' doesn\'t exist
  • 141211 15:06:12 [ERROR] Can\'t open the mysql.plugin table. Please run mysql_upgrade to create it.
  • 141211 15:06:14 [ERROR] Fatal error: Can\'t open and lock privilege tables: Table \'mysql.host\' doesn\'t exist
  • 141211 15:06:14 mysqld_safe mysqld from pid file /opt/szy/data/mysqldevdb03.pid ended

  •  
    问题分析:
                   百度了下,发现这是执行scripts/mysql_install_db --user=mysql没有成功的原因,没有一个初始化数据库,不能启动mysql守护进程
    解决办法:
                   执行如下语句,szy为实例名
                   ./scripts/mysql_install_db --user=szy --basedir=/opt/szy/ --datadir=/opt/szy/data/

    重启启动,OK!



    文章标题:MySQL启动报错Table'mysql.plugin'doesn'texist
    网址分享:http://www.xwwzsj.com/article/jchcdh.html

    其他资讯

    售后响应及时

    7×24小时客服热线

    数据备份

    更安全、更高效、更稳定

    价格公道精准

    项目经理精准报价不弄虚作假

    合作无风险

    重合同讲信誉,无效全额退款