无法在Fedora 19上启动mysql

我正在运行Fedora 19,我使用yum install mysql安装了MySQL.

当我发出mysql命令时,我收到以下错误消息:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)

如果我确实在/var/lib/mysql/mysql.sock文件中创建了错误消息更改为(111)后的数字(可能是我创建了具有错误权限的文件).

读到this questionthis one之后我试着为mysqld启动服务,但我得到:

Redirecting to /bin/systemctl start  mysqld.service
Failed to issue method call: Unit mysqld.service failed to load: No such file or directory. See system logs and 'systemctl status mysqld.service' for details.

和服务mysqld状态返回

Redirecting to /bin/systemctl status  mysqld.service
mysqld.service
   Loaded: error (Reason: No such file or directory)
   Active: inactive (dead)
最佳答案
包mysql是客户端包.您需要安装服务器包:

$sudo yum install mysql-server

此外,从Fedora 19开始,MariaDB现在是MySQL的默认实现. MariaDB是MySQL的一个分支.

MariaDB, a community developed fork of MySQL, will be the default implementation of MySQL in Fedora 19.

来源:https://fedoraproject.org/wiki/Features/ReplaceMySQLwithMariaDB

转载注明原文:无法在Fedora 19上启动mysql - 代码日志