【发布时间】:2011-11-10 17:29:12
【问题描述】:
在 Ubuntu 机器上发出“mysql”命令时出现此错误:
ERROR 2002 (HY000): 无法通过套接字 '/var/run/mysqld/mysqld.sock' (111) 连接到本地 MySQL 服务器
服务未启动并出现以下错误:
root@bettorssidekick:/# service mysql start
start: Job failed to start
root@bettorssidekick:/#
重新启动服务,它不会再次运行。这是 mysql 日志中的最终日志条目:
110824 12:03:36 [Note] Plugin 'FEDERATED' is disabled.
110824 12:03:36 InnoDB: Initializing buffer pool, size = 8.0M
110824 12:03:36 InnoDB: Completed initialization of buffer pool
110824 12:03:36 InnoDB: Started; log sequence number 0 44233
110824 12:03:36 [Note] Event Scheduler: Loaded 0 events
110824 12:03:36 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.1.54-1ubuntu4' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu)
110902 5:34:04 [ERROR] /usr/sbin/mysqld: Disk is full writing './bettorssidekick/schedules.MYD' (Errcode: 28). Waiting for someone to free space... (Expect up to 60 secs delay for server to contin$
110902 5:34:04 [ERROR] /usr/sbin/mysqld: Retry in 60 secs. Message reprinted in 600 secs
110902 5:36:02 [ERROR] /usr/sbin/mysqld: Disk is full writing './bettorssidekick/cronejob.MYD' (Errcode: 28). Waiting for someone to free space... (Expect up to 60 secs delay for server to continu$
110902 5:36:02 [ERROR] /usr/sbin/mysqld: Retry in 60 secs. Message reprinted in 600 secs
110902 5:44:04 [ERROR] /usr/sbin/mysqld: Retry in 60 secs. Message reprinted in 600 secs
【问题讨论】:
-
错误已经告诉你问题出在哪里了