I just upgraded to Mountain Lion, and now I am having trouble connecting to MySQL. This is the error message that I am getting
Warning: mysqli::mysqli():  Socket operation on non-socket (trying to connect via unix:///tmp/mysql.sock) in /Users/barryhjames/Sites/stwilliamtheabbot/genesis/databaseconnect.php on line 2
Warning: mysqli::mysqli(): (HY000/2002): Socket operation on non-socket in /Users/barryhjames/Sites/stwilliamtheabbot/genesis/databaseconnect.php on line 2
Well, line 2 is just a call to my database (using PHP). When I checked to see if the mysql.sock file was in the /tmp/ folder, it is.
Not sure what is happening here. Any advice?
WARNING: I’m not a server guy, so if you have advice, I might need to be walked through it a bit. Sorry!