周末MySQL挂了,这个是日志,请大神看看

能写程序-会种庄稼 2015-02-02 10:31:02
这是最后的日志

Version: '5.6.22' socket: '/tmp/mysql.sock' port: 3306 Source distribution
Killed
150131 14:45:25 mysqld_safe Number of processes running now: 0
150131 14:45:25 mysqld_safe mysqld restarted
2015-01-31 14:45:26 0 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
2015-01-31 14:45:26 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-01-31 14:45:26 1303 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'
2015-01-31 14:45:26 1303 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
2015-01-31 14:45:26 1303 [Note] Plugin 'FEDERATED' is disabled.
2015-01-31 14:45:26 1303 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-01-31 14:45:26 1303 [Note] InnoDB: The InnoDB memory heap is disabled
2015-01-31 14:45:26 1303 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-01-31 14:45:26 1303 [Note] InnoDB: Memory barrier is not used
2015-01-31 14:45:26 1303 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-01-31 14:45:26 1303 [Note] InnoDB: Using CPU crc32 instructions
2015-01-31 14:45:26 1303 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-01-31 14:45:26 1303 [Note] InnoDB: Completed initialization of buffer pool
2015-01-31 14:45:26 1303 [Note] InnoDB: Highest supported file format is Barracuda.
2015-01-31 14:45:26 1303 [Note] InnoDB: The log sequence numbers 1626027 and 1626027 in ibdata files do not match the log sequence number 120048011 in the ib_logfiles!
2015-01-31 14:45:26 1303 [Note] InnoDB: Database was not shutdown normally!
2015-01-31 14:45:26 1303 [Note] InnoDB: Starting crash recovery.
2015-01-31 14:45:26 1303 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-01-31 14:45:26 1303 [Note] InnoDB: Restoring possible half-written data pages
2015-01-31 14:45:26 1303 [Note] InnoDB: from the doublewrite buffer...
2015-01-31 14:45:26 1303 [Note] InnoDB: 128 rollback segment(s) are active.
2015-01-31 14:45:26 1303 [Note] InnoDB: Waiting for purge to start
2015-01-31 14:45:26 1303 [Note] InnoDB: 5.6.22 started; log sequence number 120048011
2015-01-31 14:45:26 1303 [ERROR] Aborting

2015-01-31 14:45:26 1303 [Note] Binlog end
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'partition'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_METRICS'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_CMPMEM'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_CMP'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_LOCKS'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'INNODB_TRX'
2015-01-31 14:45:26 1303 [Note] Shutting down plugin 'InnoDB'
2015-01-31 14:45:26 1303 [Note] InnoDB: FTS optimize thread exiting.
2015-01-31 14:45:26 1303 [Note] InnoDB: Starting shutdown...
2015-01-31 14:45:27 1303 [Note] InnoDB: Shutdown completed; log sequence number 120051666
2015-01-31 14:45:27 1303 [Note] Shutting down plugin 'ARCHIVE'
2015-01-31 14:45:27 1303 [Note] Shutting down plugin 'BLACKHOLE'
2015-01-31 14:45:27 1303 [Note] Shutting down plugin 'CSV'
2015-01-31 14:45:27 1303 [Note] Shutting down plugin 'MRG_MYISAM'
2015-01-31 14:45:27 1303 [Note] Shutting down plugin 'MyISAM'
2015-01-31 14:45:27 1303 [Note] Shutting down plugin 'MEMORY'
2015-01-31 14:45:27 1303 [Note] Shutting down plugin 'sha256_password'
2015-01-31 14:45:27 1303 [Note] Shutting down plugin 'mysql_old_password'
2015-01-31 14:45:27 1303 [Note] Shutting down plugin 'mysql_native_password'
2015-01-31 14:45:27 1303 [Note] Shutting down plugin 'binlog'
2015-01-31 14:45:27 1303 [Note]
150131 14:45:28 mysqld_safe mysqld from pid file /usr/local/mysql/data/ip-172-31-28-244.pid ended



现在运提示如下::
root@ip-172-31-28-244:/usr/local/mysql/bin# ./mysqld_safe --user=mysql &
[1] 6470
root@ip-172-31-28-244:/usr/local/mysql/bin# 150202 10:07:18 mysqld_safe Logging to '/var/log/mysql/error.log'.
touch: cannot touch ?.var/log/mysql/error.log?. No such file or directory
chmod: cannot access ?.var/log/mysql/error.log?. No such file or directory
touch: cannot touch ?.var/log/mysql/error.log?. No such file or directory
chown: cannot access ?.var/log/mysql/error.log?. No such file or directory
150202 10:07:18 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
./mysqld_safe: 129: ./mysqld_safe: cannot create /var/log/mysql/error.log: Directory nonexistent
./mysqld_safe: 1: eval: cannot create /var/log/mysql/error.log: Directory nonexistent
touch: cannot touch ?.var/log/mysql/error.log?. No such file or directory
chown: cannot access ?.var/log/mysql/error.log?. No such file or directory
chmod: cannot access ?.var/log/mysql/error.log?. No such file or directory
150202 10:07:18 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
./mysqld_safe: 129: ./mysqld_safe: cannot create /var/log/mysql/error.log: Directory nonexistent

[1]+ Exit 2 ./mysqld_safe --user=mysql


我不知道刚开始 都是在usr/local/mysql 现在怎么变成 /var/log/mysql了
...全文
191 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
我的版本是5.6.22
  • 打赏
  • 举报
回复
引用 1 楼 benluobobo 的回复:
[ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys' 检查 这个文件是否存在 ,如果没有 新建试试看
试过了,不起作用,还是提示错误
  • 打赏
  • 举报
回复
我是按照mysql官网的文档安装的, 安装在/usr/local/mysql下 前端时间运行的好好的, 这两天周末没看,就挂了。 之前我发现不管是log还是pid,都是在/usr/local/mysql这个目录的子目录下产生,不会牵扯到var目录, 这次问题之后,从报的信息来看,好多路径自动变到/var下面去了。 我什么都没改动,不知道怎么会突然这样
benluobo 2015-02-02
  • 打赏
  • 举报
回复
[ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys' 检查 这个文件是否存在 ,如果没有 新建试试看

56,677

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧