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

mysql出错了,不能启动
mysql不能用啊,一连接,就报错:ERROR   2002   (HY000):   Can 't   connect   to   local   MySQL   server   through   socket   '/tmp/mysql.sock '   (2)


以下是错误日志,看不懂啊,请高手帮忙

917   13:58:10     mysqld   started
InnoDB:   The   first   specified   data   file   ./ibdata1   did   not   exist:
InnoDB:   a   new   database   to   be   created!
070917   13:58:10     InnoDB:   Setting   file   ./ibdata1   size   to   10   MB
InnoDB:   Database   physically   writes   the   file   full:   wait...
070917   13:58:10     InnoDB:   Error:   Write   to   file   ./ibdata1   failed   at   offset   0   0.
InnoDB:   1048576   bytes   should   have   been   written,   only   -1   were   written.
InnoDB:   Operating   system   error   number   28.
InnoDB:   Check   that   your   OS   and   file   system   support   files   of   this   size.
InnoDB:   Check   also   that   the   disk   is   not   full   or   a   disk   quota   exceeded.
InnoDB:   Error   number   28   means   'No   space   left   on   device '.
InnoDB:   Some   operating   system   error   numbers   are   described   at
InnoDB:   http://dev.mysql.com/doc/refman/5.0/en/operating-system-error-codes.html
InnoDB:   Error   in   creating   ./ibdata1:   probably   out   of   disk   space
InnoDB:   Could   not   open   or   create   data   files.
InnoDB:   If   you   tried   to   add   new   data   files,   and   it   failed   here,
InnoDB:   you   should   now   edit   innodb_data_file_path   in   my.cnf   back
InnoDB:   to   what   it   was,   and   remove   the   new   ibdata   files   InnoDB   created
InnoDB:   in   this   failed   attempt.   InnoDB   only   wrote   those   files   full   of
InnoDB:   zeros,   but   did   not   yet   use   them   in   any   way.   But   be   careful:   do   not
InnoDB:   remove   old   data   files   which   contain   your   precious   data!
/usr/local/mysql/libexec/mysqld:   Disk   is   full   writing   './mysql-bin.000003 '   (Errcode:   28).   Waiting   for   someone   to   free   space...   Retry   in   60   secs


------解决方案--------------------
/usr/local/mysql/libexec/mysqld: Disk is full writing './mysql-bin.000003 ' (Errcode: 28). Waiting for someone to free space... Retry in 60 secs

还有这个,显示磁盘配额已经满了。你的空间不足。
------解决方案--------------------
InnoDB: Error number 28 means 'No space left on device '.
磁盘满啦
------解决方案--------------------
1、如果你是ROOT的话,应该是你的磁盘空间不足。
2、如果你是普通用户的话,是不是应该向管理员要点空间?