PHPMYADMIN not found mysql.sock

I had the same problem when i installed xampp on my system. The mysql server looks for /var/run/mysqld/mysqld.sock but the mysql.sock file was in xampp folder so i used

 find / -name '*.sock'

to find the mysql.sock file and then used

ln -s <the file location> /var/run/mysqld/mysqld.sock

to get a link for the *.sock file then tried mysql and it ran without error. Hope this could solve yours.

Remember to create the directory if it does not exists.

sumber: http://stackoverflow.com/a/19678127

*) Jika tetap tidak menemukan mysql.sock nya :

sudo apt-get install mysql-server  
(jika telah terinstall, maka install ulang)
sudo service mysql stop
sudo /opt/lampp/lampp start
(sampai status mysql running)

*) intinya jangan sampai ada dua mysql jalan berbarengan

sumber: http://stackoverflow.com/questions/11990708/error-cant-connect-to-local-mysql-server-through-socket-var-run-mysqld-mysq

Advertisements

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