2014-09-06 58 views
0

我刚将MySQL从5.1.59升级到5.6.20(OSX 10.7),现在MySQL服务器无法启动。升级后无法启动MySQL服务器

在MySQL工作台(v6.1.7),在启动/关闭视图,在尝试启动服务器,启动消息日志内容如下:

Could not open error log file: [Errno 2] The indicated path does not exist 
2014-09-06 11:21:52 - Starting server... 
2014-09-06 11:21:52 - Executing '/usr/local/mysql/support-files/mysql.server start' 
2014-09-06 11:21:52 - Start server: Starting MySQL 

2014-09-06 11:21:52 - Start server: .. ERROR! The server quit without updati 
2014-09-06 11:21:52 - Start server: ng PID file (/usr/local/mysql/data/new-host-3.home.pid). 

2014-09-06 11:21:52 - Server start done. 
2014-09-06 11:21:52 - Checking server status... 
2014-09-06 11:21:52 - Trying to connect to MySQL... 
2014-09-06 11:21:52 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (2002) 
2014-09-06 11:21:52 - Assuming server is not running 
2014-09-06 11:21:52 - Checking server status... 
2014-09-06 11:21:52 - Trying to connect to MySQL... 
2014-09-06 11:21:52 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (2002) 
2014-09-06 11:21:52 - Assuming server is not running 

而且在/ usr /本地/ MySQL的-5.6.20-osx10.7-x86_64的/数据/新宿主3.home.err内容如下:

140906 11:30:57 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data 
2014-09-06 11:30:57 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 
2014-09-06 11:30:57 2575 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive 
2014-09-06 11:30:57 2575 [Note] Plugin 'FEDERATED' is disabled. 
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist 
2014-09-06 11:30:57 2575 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 
2014-09-06 11:30:57 2575 [Note] InnoDB: Using atomics to ref count buffer pool pages 
2014-09-06 11:30:57 2575 [Note] InnoDB: The InnoDB memory heap is disabled 
2014-09-06 11:30:57 2575 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 
2014-09-06 11:30:57 2575 [Note] InnoDB: Memory barrier is not used 
2014-09-06 11:30:57 2575 [Note] InnoDB: Compressed tables use zlib 1.2.3 
2014-09-06 11:30:57 2575 [Note] InnoDB: Using CPU crc32 instructions 
2014-09-06 11:30:57 2575 [Note] InnoDB: Initializing buffer pool, size = 128.0M 
2014-09-06 11:30:57 2575 [Note] InnoDB: Completed initialization of buffer pool 
2014-09-06 11:30:57 2575 [Note] InnoDB: Highest supported file format is Barracuda. 
2014-09-06 11:30:57 2575 [Note] InnoDB: 128 rollback segment(s) are active. 
2014-09-06 11:30:57 2575 [Note] InnoDB: Waiting for purge to start 
2014-09-06 11:30:57 2575 [Note] InnoDB: 5.6.20 started; log sequence number 1600927 
2014-09-06 11:30:57 2575 [ERROR] /usr/local/mysql/bin/mysqld: unknown option '--skip-locking' 
2014-09-06 11:30:57 2575 [ERROR] Aborting 

2014-09-06 11:30:57 2575 [Note] Binlog end 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'partition' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_SYS_FIELDS' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_SYS_INDEXES' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_SYS_TABLES' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_FT_CONFIG' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_FT_DELETED' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_METRICS' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_CMPMEM' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_CMP_RESET' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_CMP' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_LOCK_WAITS' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_LOCKS' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'INNODB_TRX' 
2014-09-06 11:30:57 2575 [Note] Shutting down plugin 'InnoDB' 
2014-09-06 11:30:57 2575 [Note] InnoDB: FTS optimize thread exiting. 
2014-09-06 11:30:57 2575 [Note] InnoDB: Starting shutdown... 
2014-09-06 11:30:59 2575 [Note] InnoDB: Shutdown completed; log sequence number 1600937 
2014-09-06 11:30:59 2575 [Note] Shutting down plugin 'BLACKHOLE' 
2014-09-06 11:30:59 2575 [Note] Shutting down plugin 'ARCHIVE' 
2014-09-06 11:30:59 2575 [Note] Shutting down plugin 'MRG_MYISAM' 
2014-09-06 11:30:59 2575 [Note] Shutting down plugin 'MyISAM' 
2014-09-06 11:30:59 2575 [Note] Shutting down plugin 'MEMORY' 
2014-09-06 11:30:59 2575 [Note] Shutting down plugin 'CSV' 
2014-09-06 11:30:59 2575 [Note] Shutting down plugin 'sha256_password' 
2014-09-06 11:30:59 2575 [Note] Shutting down plugin 'mysql_old_password' 
2014-09-06 11:30:59 2575 [Note] Shutting down plugin 'mysql_native_password' 
2014-09-06 11:30:59 2575 [Note] Shutting down plugin 'binlog' 
2014-09-06 11:30:59 2575 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete 

140906 11:30:59 mysqld_safe mysqld from pid file /usr/local/mysql/data/new-host-3.home.pid ended 

顺便说一下有在/ var/MySQL的一个的mysql.sock文件,并且有没有mysqld进程在运行。

我还没有能够运行mysql_upgrade或其他任何我见过的建议给类似症状的用户,因为我无法启动服务器。这超出了我的MySQL意识;有人可以解释发生了什么,我该如何解决这个问题?

任何帮助将是非常赞赏,

SVS

回答

0

这个问题是在dba.stackexchange.com更好地问道。

您在my.cnf文件或启动脚本中指定了不受支持的选项。

[ERROR] /usr/local/mysql/bin/mysqld: unknown option '--skip-locking' 
[ERROR] Aborting 

有可能的,这个选项是前一版本的MySQL有效,并在以后的版本(被淘汰,也很可能产生在启动过程中[WARNING],并随后在新闻稿无效你现在运行。

“修复”将定位在my.cnf文件选项,然后将其删除。(有目录的序列,其中的mysqld查找该文件my.cnf,取决于释放和OS(/etc/my.cnf/etc/mysql/my.cnf, mysql安装目录等。选项也可以在启动mysqld的命令行中指定;不太可能,这可能是opti正在从mysqld_safe脚本提供。)

+0

Thx,我已经在那里发布。 – user1613163 2014-09-06 16:11:17