Results 1 to 2 of 2
Jul 31, 2012, 10:57 #1
- Join Date
- May 2006
- New York City
- 0 Post(s)
- 0 Thread(s)
Socket operation on non-socket (trying to connect via unix:///tmp/mysql.sock)
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!James Web Development | New York, NY
Design, Develop, Deliver