这是一个创建于 4013 天前的主题,其中的信息可能已经有所发展或是发生改变。
阿里云, CentOS. 我觉得这个问题主要出在「 MySQL 的安装目录不是默认目录」.
我修改了 mysql-5.5.37/bin/mysqld_safe 文件, 但还是出现了目录错误.
如何解决, 请指教. 谢谢.
# service mysqld stop
Shutting down MySQL. SUCCESS!
# mysqld_safe --skip-grant-tables --skip-networking &
[1] 1364
[root@centos ~]# 141031 11:51:51 mysqld_safe Logging to 'mysql/error.log'.
141031 11:51:51 mysqld_safe Starting mysqld daemon with databases from mysql-5.5.37/data
141031 11:51:53 mysqld_safe mysqld from pid file mysql-5.5.37/data/iZ28w1otkcfZ.pid ended
[1]+ Done
----------------------------------------------------------------------
错误信息大概是这样的:
141031 11:51:52 InnoDB: Starting shutdown...
141031 11:51:53 InnoDB: Shutdown completed; log sequence number 5400240
141031 11:51:53 [Note]
141031 11:51:53 mysqld_safe mysqld from pid file mysql-5.5.37/data/iZ28w1otkcfZ.pid ended
141031 11:52:32 mysqld_safe Starting mysqld daemon with databases from mysql-5.5.37/data
141031 11:52:32 [ERROR] Can't find messagefile '/usr/local/mysql/share/errmsg.sys'
141031 11:52:32 [Note] Plugin 'FEDERATED' is disabled.
141031 11:52:32 InnoDB: The InnoDB memory heap is disabled
141031 11:52:32 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141031 11:52:32 InnoDB: Compressed tables use zlib 1.2.3
141031 11:52:32 InnoDB: Using Linux native AIO
141031 11:52:32 InnoDB: Initializing buffer pool, size = 128.0M
141031 11:52:32 InnoDB: Completed initialization of buffer pool
141031 11:52:32 InnoDB: highest supported file format is Barracuda.
141031 11:52:32 InnoDB: Waiting for the background threads to start
141031 11:52:33 InnoDB: 5.5.37 started; log sequence number 5400240
141031 11:52:33 [ERROR] Aborting