我有mysql启动错误:
131223 19:03:24 [Note] Plugin 'FEDERATED' is disabled.
131223 19:03:25 InnoDB: Started; log sequence number 55 4050118616
131223 19:03:25 [ERROR] Can't start server : Bind on unix socket: No space left on device
131223 19:03:25 [ERROR] Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ?
131223 19:03:25 [ERROR] Aborting
131223 19:03:25 InnoDB: Starting shutdown...
131223 19:03:30 InnoDB: Shutdown completed; log sequence number 55 4050118616
131223 19:03:30 [Note] /usr/sbin/mysqld: Shutdown complete
当我想要做的时候
sudo mkfifo /var/run/mysqld/mysqld.sock
我有
mkfifo: cannot create fifo `/var/run/mysqld/mysqld.sock': No space left on device
df -h的结果:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/system-root
473M 131M 318M 30% /
tmpfs 5.9G 0 5.9G 0% /lib/init/rw
udev 5.9G 168K 5.9G 1% /dev
tmpfs 5.9G 0 5.9G 0% /dev/shm
/dev/md0 472M 27M 422M 6% /boot
/dev/mapper/system-usr
9.2G 772M 8.0G 9% /usr
/dev/mapper/system-var
13G 4.5G 7.7G 37% /var
/dev/mapper/system-home
591G 280G 282G 50% /home
/dev/mapper/system-logs
15G 7.7G 6.1G 57% /logs
所以...我有自由空间,但我没有自由空间? 如何启动mysql?
答案 0 :(得分:0)
第4行告诉你Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ?
如果/var/run/mysqld/mysqld.sock
已经存在,则会失败。
答案 1 :(得分:0)
该目录的权限是什么? / var / run / mysqld?
它们应该由mysql拥有,但在某些情况下我发现它也可能不会像mysql一样运行。如果没有,请运行chown USER /var/run/mysqld
,其中USER就是您。 :P
希望这会有所帮助。