[HOW-TO]MySQL - ERROR 2002 - Can't connect to local MySQL
#1
[HOW-TO]MySQL - ERROR 2002 - Can't connect to local MySQL
Correcting the error: MySQL - ERROR 2002 (HY000) - Can't connect to local MySQL server through socket
  1. Code:
    mysql -u root -p

  2. Code:
    ls -lart /var/run/my*

  3. Code:
    mkdir /var/run/mysqld

  4. Code:
    touch /var/run/mysqld/mysqld.sock

  5. Code:
    ls -lart /var/run/mysqld

  6. Code:
    chown -R mysql /var/run/mysqld

  7. Code:
    ls -lart /var/run/mysqld

  8. Code:
    /etc/init.d/mysql restart

  9. Code:
    mysql -u root -p

  10. Code:
    quit
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Using Custom Vhost Entries for Webmail, MySQL, Etc. TGates 83 328 ,176 04-21-2020, 04:31 PM
Last Post: Jettaman
Following Lets Encrypt guide ERROR CMs222 1 5 ,920 01-17-2018, 01:05 AM
Last Post: TGates
Can i connect Sentora with WHMCS? kini 0 4 ,752 08-15-2015, 09:49 PM
Last Post: kini

Forum Jump:


Users browsing this thread: 1 Guest(s)