启动 MySQL 数据库服务器 mysqld

启动 MySQL 数据库服务器 mysqld

今天我在 Ubuntu 13.10 上安装了 MySQL,一切运行正常。但是我重启电脑后,当我重启 MySQL 时,它失败了,/var/log/mysql 中的日志如下:

31216 22:40:25 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
131216 22:40:25 [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.
131216 22:40:25 [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.
131216 22:40:25 [Note] Plugin 'FEDERATED' is disabled.
131216 22:40:25 InnoDB: The InnoDB memory heap is disabled
131216 22:40:25 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131216 22:40:25 InnoDB: Compressed tables use zlib 1.2.8
131216 22:40:25 InnoDB: Using Linux native AIO
131216 22:40:25 InnoDB: Initializing buffer pool, size = 128.0M
131216 22:40:25 InnoDB: Completed initialization of buffer pool
131216 22:40:25 InnoDB: highest supported file format is Barracuda.
131216 22:40:26  InnoDB: Waiting for the background threads to start
131216 22:40:27 InnoDB: 5.5.34 started; log sequence number 1609544
131216 22:40:27 [ERROR] /usr/sbin/mysqld: unknown variable 'default-character-set=utf8'
131216 22:40:27 [ERROR] Aborting

131216 22:40:27  InnoDB: Starting shutdown...
131216 22:40:27  InnoDB: Shutdown completed; log sequence number 1609544
131216 22:40:27 [Note] /usr/sbin/mysqld: Shutdown complete

131216 22:40:27 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

谁能帮我解决这个问题,谢谢!

答案1

从日志输出来看这似乎相当明显。 [ERROR] /usr/sbin/mysqld: unknown variable 'default-character-set=utf8'

我想你正在寻找character-set-server

相关内容