When I run this command find / -name my.cnf
I find two locations for my.cnf
/opt/lampp/etc/my.cnf
/etc/mysql/my.cnf
I don't get which one is used by MySQL server?
And, when i run command php artisan migrate
, I get this error
[PDOException]
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '
/var/run/mysqld/mysqld.sock' (2)
You can all see very clearly the error path showing /var/run/mysqld/mysqld.sock
(Actually, in my system/desktop. There is no folder name "mysqld" inside "run folder")
I have a `mysql.sock` file inside /opt/lampp/var/mysql/mysql.sock
So, what can be the issue. ?? Please help. I asked the question here bind-address not present in my.cnf file - Laravel 3 hours before, but no response until now.