我使用“Webadmin”运行 Fedora 17。所以我尝试使用 webadmin 选项来更新上传到我的 MySQL 数据库的最大大小。现在,我无法重新启动 mysqld。我没有 GUI,所以在运行时systemctl status mysqld.service
我给了我这个消息:
[root@localhost ~]# systemctl status mysqld.service
mysqld.service - MySQL database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
Active: failed (Result: exit-code) since Mon, 30 Jul 2012 15:08:26 -0400; 6min ago
Process: 3560 ExecStartPost=/usr/libexec/mysqld-wait-ready $MAINPID (code=exited, status=1/FAILURE)
Process: 3559 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
Process: 3542 ExecStartPre=/usr/libexec/mysqld-prepare-db-dir (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/mysqld.service
Jul 30 15:08:23 localhost mysqld_safe[3559]: 120730 15:08:23 mysqld_safe Logging to '/var/log/mysqld.log'.
Jul 30 15:08:23 localhost mysqld_safe[3559]: 120730 15:08:23 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
或者当我尝试访问我的 phpmyadmin 屏幕时,我看到了这条消息:
phpMyAdmin - Error
#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
The server is not responding (or the local server's socket is not correctly configured).
当我在终端运行时,locate mysql.sock
它显示了正确的路径/var/lib/mysql/mysql.sock
。但是当我运行这个命令时ls /var/lib/mysql
,我无法找到这个文件。
请帮忙。