MySQL service error in Fedora 19

asked 2013-07-13 14:25:30 -0500

matrix1372 gravatar image

updated 2014-10-05 05:14:29 -0500

mether gravatar image

Hi there :) for setup a LAMP Server in Fedora i tried this code:

# yum install httpd php mysql mysql-server phpmyadmin

Everything is ok but while starting MySQL service it gives me an error, and using any mysql service gives me this error:

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

I replaced MariaDB with MySQL using:

# yum remove mysql mysql-server
# yum install community-mysql community-mysql-server

but the problem stays. I searched for mysql.sock socket file but that not exist in:

/var/lib/mysql/mysql.sock

or anywhere in both installtion (MariaDB or MySQL).

Where is the problem? Where is the mysql.sock file? What should I do?

Thanks :)

edit retag flag offensive close merge delete

Comments

1

How did you installed mysql? There is mariadb, community-mysql and community-mysql-server in the repo, there is no mysql.

yanglifu90 gravatar imageyanglifu90 ( 2013-07-13 20:28:33 -0500 )edit

Yes! I installed community-mysql and community-mysql-server and intent of MySQL in "I replaced MariaDB with MySQL" is community-mysql. now the main problem is mysql.sock file, and not MySQL or community-mysql! ;)

matrix1372 gravatar imagematrix1372 ( 2013-07-14 03:19:29 -0500 )edit

@matrix1372 What commands did you use to start the service?

yanglifu90 gravatar imageyanglifu90 ( 2013-07-14 06:35:17 -0500 )edit

service mysql start

matrix1372 gravatar imagematrix1372 ( 2013-07-14 06:52:10 -0500 )edit

@yanglifu90: There is mysql on the repo! Do you still have the problem??

pajafumo gravatar imagepajafumo ( 2013-07-17 21:48:02 -0500 )edit