mysqld 在 F16 上失败

mysqld 在 F16 上失败

我已经通过 yum 安装了 mysql 和 phpmyadmin。我收到消息

#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).

但问题出在 mysql 本身。

# service mysqld start
Redirecting to /bin/systemctl  start mysqld.service
Job failed. See system logs and 'systemctl status' for details.

/var/log/mysql/mysql.log是空的,但我不确定下一步该看哪里?

有任何想法吗?

答案1

我记得曾经用以下解决方案修复过此问题:

尝试:

yum -enablerepo=remi install mysql-libs mysql.x86_64 mysql-devel.x86_64 mysql-server php-mysql

然后:

Mysql -u root -p

答案2

我在以下帮助下解决了这个问题本网站,似乎起了作用。

## Remi Dependency on Fedora 17, 16
rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm 
rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

## Fedora 17 ##
rpm -Uvh http://rpms.famillecollet.com/remi-release-17.rpm

相关内容