I’m trying to connect to my localhost MySQL server via php in the terminal.
It’s outputting that it cannot connect to the host through my socket. My PHP ini install says this
MYSQL_SOCKET /tmp/mysql.sock
so i used
mysql_connect("/tmp/mysql.sock","root","","");
And I get errors
Any suggestions?
Did you try
like mentioned in the manual.
BTW: Posting what errors you get might help when asking questions.