This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[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
Thanks given by:


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

Forum Jump:


Users browsing this thread: 1 Guest(s)