mysql初始化结束

bin/mysql_install_db --user=mysql  &

启动报错

121122 21:36:50 mysqld_safe Starting mysqld daemon with databases from /opt/mysql/data

121122 21:36:50 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.

/opt/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist

121122 21:36:50 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

121122 21:36:50 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

121122 21:36:50 mysqld_safe mysqld from pid file /opt/mysql/data/Client.pid ended

解决:

重新初始化:bin/mysql_install_db --user=mysql --datadir=/opt/mysql/data/

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐