日期:2014-05-16  浏览次数:20864 次

mysql 启动不了。救命呀。。
在my.cnf文件里想加个log,加了以后启动不了,于是把那个文件又注释掉了,还是启动不了,高手们救我呀。。
错误;
SQL code

[root@localhost /]# /etc/init.d/mysqld start
120611 18:04:03 InnoDB: The InnoDB memory heap is disabled
120611 18:04:03 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
120611 18:04:03 InnoDB: Compressed tables use zlib 1.2.3
120611 18:04:03 InnoDB: Initializing buffer pool, size = 128.0M
120611 18:04:03 InnoDB: Completed initialization of buffer pool
120611 18:04:03 InnoDB: highest supported file format is Barracuda.
120611 18:04:03  InnoDB: Waiting for the background threads to start
120611 18:04:04 InnoDB: 1.1.6 started; log sequence number 1086865420
/etc/init.d/mysqld: Too many arguments (first extra is 'start').
Use --verbose --help to get a list of available options
120611 18:04:04 [ERROR] Aborting

120611 18:04:04  InnoDB: Starting shutdown...
120611 18:04:04  InnoDB: Shutdown completed; log sequence number 1086865420
120611 18:04:04 [Note] /etc/init.d/mysqld: Shutdown complete



my.cnf

SQL code

socket=/tmp/mysql.sock
default-character-set=utf8

[mysqld]
user=mysql
socket=/tmp/mysql.sock
character_set_server=utf8
init_connect='SET NAMES utf8'
datadir=/usr/lib/mysql
server-id=2

log-bin=mysql-bin
replicate-do-db=eco
binlog-do-db=eco

#log-error = mysqld.err
#general-log=mysql_querry.log

#slow-query-log=mysql-slow.log
#long-query-time=1




------解决方案--------------------
user=mysql
这行去掉
------解决方案--------------------
先ps -ef| grep mysql看看有没有mysql进程
再service mysql restart试试 另外你系统时间怎么快1小时

另外你确定是就改了一个参数吗 没有别的操作了吗

看看data目录权限