ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

Pernahkah anda pas ngerun mysql di command line mengalami error seperti ini ?

errormysql

Nah, cara mengatasinya adalah membuat ‘link’ ke file /var/run/mysqld/mysqld.sock, caranya :

mysqlhandling
Advertisements
Post a comment or leave a trackback: Trackback URL.

Comments

  • adnan nanda  On January 10, 2013 at 2:46 pm

    omm..
    masi gak bisa..

    root@bt:~# mkdir /var/run/mysqld
    mkdir: cannot create directory `/var/run/mysqld’: File exists
    root@bt:~# ln -s /opt/lampp/var/mysql/mysql.sock /var/run/mysqld/mysqld.sock
    root@bt:~# mysql
    ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

    nongolnya kayak gitu..
    gimana om..
    tolong bantuannya..

    • endro gawang  On January 11, 2013 at 3:54 am

      mysqlnya pake yang apa ya?
      kalo yang punyakku pake xampp
      karena tempatnya mesti beda

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: