我之前是打算改下my.cnf,设置了默认字符集.
然后重启MySQL就启动不了啦..
显示错误信息:
引用:
[root@localhost ~]# /etc/rc.d/init.d/mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
错误日志:
引用:
080412 08:44:18 mysqld started
080412 8:44:18 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 304 error messages,
but it should contain at least 476 error messages.
Check that the above file is the right version for this program!
080412 8:44:18 [ERROR] Aborting
080412 08:44:18 mysqld ended
我现在又把my.cnf恢复到默认了,还是启动不了MySQL。
我用 vi my.cnf 指令打开 my.cnf 文件。怎么看到的只有这些:
引用:
[root@flashad etc]# vi my.cnf
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
顺便问一下...之前我登陆SSH都是显示的 root@localhost ,现在确是 root@flashad 。
why?
————————————————————————————
我QQ:53426