分类
IT运维

centos7安装完mysql后启动报错Can’t open the mysql.plugin table.

[ERROR] Can’t open the mysql.plugin table. Please run mysql_upgrade to create it.

#初始化的时候直接用以下命令,不带其他参数:
mysqld --initialize
#修改data目录权限:
chown -R mysql.mysql /var/lib/mysql
#启动:
service mysqld start