LEMP ready , just a tiny problem
i have setup my linode with LEMP ( linux, nginx, mysql ,php) + php-fpm, now everything is running smoothly, but i have a small problem ,i can't connect mysql through "localhost",i can only connect mysql with ip , which is 127.0.0.1 , did i miss out any config ?
1 Reply
Look for socket= line in /etc/mysql/my.cnf, in ALL the sections (so, [client], [mysqld], [mysqld_safe]).
Also, ps axu | grep mysqld
and look for –socket parameter on the commandline.
Proper location of the socket for Debian (and derivatives?) is /var/run/mysqld/mysqld.sock, dunno where it is on other distros.