You are not logged in.

#1 2019-02-27 15:47:43

AhmetBarut
Member
Registered: 2019-02-27
Posts: 5

[SOLVED] ERROR 2002 (HY000) mysql.sock

Hi, I've set up the last day arch linux
trying to install mysql today I get the error
I've mentioned below can you help me solve?

[root@BARUT scorch3rr]# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)

Last edited by AhmetBarut (2019-02-28 19:22:24)

Offline

#2 2019-02-27 15:58:20

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,545

Re: [SOLVED] ERROR 2002 (HY000) mysql.sock

Hi and welcome to arch, did you start the mysql server - systemctl start mysqld (or mariadb)

Offline

#3 2019-02-28 18:36:34

AhmetBarut
Member
Registered: 2019-02-27
Posts: 5

Re: [SOLVED] ERROR 2002 (HY000) mysql.sock

@qinohe
Thank you. I started the services you said but can not find the
file mysqld.sock file to look in the directory I need to find the file

Offline

#4 2019-02-28 18:51:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] ERROR 2002 (HY000) mysql.sock

Which mysql server did you install?  Mariadb?

If so, have you followed the wiki? Have you run the mysql_install_db command?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2019-02-28 18:54:45

AhmetBarut
Member
Registered: 2019-02-27
Posts: 5

Re: [SOLVED] ERROR 2002 (HY000) mysql.sock

@Trilby
yes I did it according to wiki

Offline

#6 2019-02-28 19:10:27

loqs
Member
Registered: 2014-03-06
Posts: 18,818

Re: [SOLVED] ERROR 2002 (HY000) mysql.sock

What is the status of the service?

Offline

#7 2019-02-28 19:22:02

AhmetBarut
Member
Registered: 2019-02-27
Posts: 5

Re: [SOLVED] ERROR 2002 (HY000) mysql.sock

@logs
The service status cannot find the active mysqld.sock file, the problem has been solved for the time being.

Offline

#8 2019-02-28 19:28:33

loqs
Member
Registered: 2014-03-06
Posts: 18,818

Re: [SOLVED] ERROR 2002 (HY000) mysql.sock

Please in future post the actual commands and their outputs in code tags.  https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

#9 2019-02-28 19:42:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] ERROR 2002 (HY000) mysql.sock

And how did you solve this?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2019-02-28 20:40:32

AhmetBarut
Member
Registered: 2019-02-27
Posts: 5

Re: [SOLVED] ERROR 2002 (HY000) mysql.sock

@Tribly
Believe me, I don't understand. yesterday I had done everything in the wiki before wik set in the mysqld.sock error, but today systemctl enable mariadb.service started working after giving the command 2 weeks ago, I encountered this problem what we have done then we could not solve another distribution and then turned back to the arch, and in each installation I get this error.

Offline

Board footer

Powered by FluxBB