Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm running Fedora 19 and I have installed MySQL using yum install mysql.

When I issue the mysql command, I get the following error message:

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

If I do create the /var/lib/mysql/mysql.sock file the number after the error message change to (111) (it is possible that I have created the file with wrong permissions).

After reading to this question and this one I tried to service mysqld start, but I get:

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.

and service mysqld status returns

Redirecting to /bin/systemctl status  mysqld.service
mysqld.service
   Loaded: error (Reason: No such file or directory)
   Active: inactive (dead)
share|improve this question

1 Answer 1

up vote 8 down vote accepted

The package mysql is the client package. You need to install the server package:

$ sudo yum install mysql-server

Additionally, starting in Fedora 19, MariaDB is now the default implementation of MySQL. MariaDB is a fork of MySQL.

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

source: https://fedoraproject.org/wiki/Features/ReplaceMySQLwithMariaDB

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.