centos虚拟机重启后,MySQL服务启动不了了,求解?

#MySQL版本5.1.73
贴出日志如下:

170808 23:02:18 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
170808 23:02:19 InnoDB: Initializing buffer pool, size = 8.0M
170808 23:02:19 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
170808 23:02:19 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
170808 23:02:19 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
170808 23:02:19 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
170808 23:02:19 InnoDB: Started; log sequence number 0 0
170808 23:02:19 [Note] Event Scheduler: Loaded 0 events
170808 23:02:19 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
170809 5:21:42 [Note] /usr/libexec/mysqld: Normal shutdown

170809 5:21:42 [Note] Event Scheduler: Purging the queue. 0 events
170809 5:21:42 InnoDB: Starting shutdown...
170809 5:21:45 InnoDB: Shutdown completed; log sequence number 0 89508
170809 5:21:45 [Note] /usr/libexec/mysqld: Shutdown complete

170809 05:21:45 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
170810 18:53:14 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
170810 18:53:14 [Warning] '--default-character-set' is deprecated and will be removed in a future release. Please use '--character-set-server' instead.
/usr/libexec/mysqld: Character set 'utf-8' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
170810 18:53:14 [ERROR] Aborting

170810 18:53:14 [Note] /usr/libexec/mysqld: Shutdown complete

170810 18:53:14 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
170810 18:54:30 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
170810 18:54:30 [Warning] '--default-character-set' is deprecated and will be removed in a future release. Please use '--character-set-server' instead.
/usr/libexec/mysqld: Character set 'utf-8' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
170810 18:54:30 [ERROR] Aborting

170810 18:54:30 [Note] /usr/libexec/mysqld: Shutdown complete

170810 18:54:30 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended


1个回答

'utf-8' --> 'utf8'

jingguo_vip
jingguo_vip 非常感谢你一针见血的回答!问题解决!那样写习惯了,日志看了好几遍就没出是这,只知道5.1版本配置default-character-set,5.5开始[mysqld]中要写character-set-server。再次感谢!
接近 3 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐