mysql问题不断

   
   今天在安装mysql的时候,编译与安装过程顺利!但在启动老失败,查看错误日志显示: mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
 
查是执行scripts/mysql_install_db --user=mysql没有成功的原因,没有一个初始化数据库,不能启动mysql守护进程,重新执行:
/usr/src/mysqlXXX/scripts/mysql_install_db --datadir=/usr/local/mysql/date --user=mysql 解决。
 
然而恶梦还没结束,再次启动mysql服务时又报错.
查看错误日志如下:
091120 10:54:14 mysqld_safe mysqld from pid file /usr/local/webserver/mysql/data/localhost.pid ended
091120 10:57:24 mysqld_safe Starting mysqld daemon with databases from /usr/local/webserver/mysql/data
091120 10:57:25  InnoDB: Started; log sequence number 0 46409
091120 10:57:25 [ERROR] /usr/local/webserver/mysql/libexec/mysqld: unknown option '--skip-federated'
091120 10:57:25 [ERROR] Aborting
091120 10:57:25  InnoDB: Starting shutdown...
091120 10:57:26  InnoDB: Shutdown completed; log sequence number 0 46409
091120 10:57:26 [Note] /usr/local/webserver/mysql/libexec/mysqld: Shutdown complete

解决办法:
打开my.cnf文件
找到 skip-federated 注释掉就可以了.
 

你可能感兴趣的:(mysql,数据库,table,mysql.plugin)