You are not logged in.
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
Hi and welcome to arch, did you start the mysql server - systemctl start mysqld (or mariadb)
Offline
@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
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
@Trilby
yes I did it according to wiki
Offline
What is the status of the service?
Offline
@logs
The service status cannot find the active mysqld.sock file, the problem has been solved for the time being.
Offline
Please in future post the actual commands and their outputs in code tags. https://bbs.archlinux.org/viewtopic.php?id=57855
Offline
And how did you solve this?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
@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