So this is the first time using mySQL. I recently installed mySQL server a few hours ago and XAMPP a few days ago, although only launched XAMPP for the first time today. I'm not sure I need both do I? I can run the server from either mysql or XAMPP.
I'm trying to connect to the database via bluehost (webdomain) using phpmyadmin.
I have the mySQL server running but still get the error
Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock
. I tried to locate the file inside /var/lib/ but only see a postfix folder inside, not mySQL.
If somehow I need to put the file there, how do I do so?
EDIT: I ran netstat -ln | grep -o -m 1 -E '\S*mysqld?\.sock'
in terminal while mysql is running and this come up: /tmp/mysql.sock
. I believe this is where the file is and I need to move it somehow.
EDIT2: I opened up my.cnf file and changed the socket to /var/lib/mysql/mysql.sock
and then run the server from XAMPP. when I do netstat -ln | grep -o -m 1 -E '\S*mysqld?\.sock'
in terminal now it comes back with /var/lib/mysql/mysql.sock
. Nevertheless, the problem still occurs.