Can't connect to local MySQL server through socket

In mysql we might get this problem while fresh installation of mysql.

"Can't connect to local MySQL server through socket"

The below line can help to over come a problem.

Step:1
sudo mkdir /var/run/mysqld/

Step:2
sudo ln -s /opt/lampp/var/mysql/mysql.sock /var/run/mysqld/mysqld.sock


I think this will help you overcome the problem of mysql sock layer.

Comments

Popular posts from this blog

Azure Cloud service problem "The current service model is out of sync"

Creating an Image Watermark

Drupal 8 Media Library with SVG upload