Sample Header Ad - 728x90

Can't connect to local MySQL server

-1 votes
3 answers
10486 views
I want to run a website from my computer. I use XAMPP on a Kali Linux. I installed MySQL server with the command: apt-get install mysql-server After it was successfully installed, I entered the command mysql_secure_installation It prompted me to login to MySQL, but it repeatedly gave the error ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) screenshot I tried my password several times, with no changes just to check if I have typed it wrong the first time. Can anyone tell me how to fix this? I am following a tutorial from this site .
Asked by XIII (17 rep)
Apr 3, 2016, 12:19 AM
Last activity: Apr 29, 2025, 02:04 AM