Ashoar Posted August 24, 2008 Share Posted August 24, 2008 Hey. I am setting up my Browser Based RPG game and i have run into a problem, just as i was about too have it finished set up. This is my problem: Every time the page loads or is refreshed, before the actual page loads a pop up comes up 2 times saying the following: "Cant connect too local MYSQL server through socket '/var/run/mysqld/mysqld.sock' (2) I was wondering, what can i do to fix this problem? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/121086-php-mysql-problem/ Share on other sites More sharing options...
MasterACE14 Posted August 24, 2008 Share Posted August 24, 2008 I'm not entirely sure, but I think this means MySQL may not be turned on? just a guess. Quote Link to comment https://forums.phpfreaks.com/topic/121086-php-mysql-problem/#findComment-624222 Share on other sites More sharing options...
micmania1 Posted August 24, 2008 Share Posted August 24, 2008 Is your mysql Server hosted on the same server as your website? If not, it could be that your server does not accept incoming connections from other servers. Quote Link to comment https://forums.phpfreaks.com/topic/121086-php-mysql-problem/#findComment-624226 Share on other sites More sharing options...
Ashoar Posted August 24, 2008 Author Share Posted August 24, 2008 My MYSQL is turned on, and yes they are both on the same server. Im just stumped as too why its happening. Quote Link to comment https://forums.phpfreaks.com/topic/121086-php-mysql-problem/#findComment-624230 Share on other sites More sharing options...
LemonInflux Posted August 24, 2008 Share Posted August 24, 2008 It might be a corrupt file. Download mysql again, and replace that file (or even the whole thing) ---------------- Now playing: Linkin Park - One Step Closer via FoxyTunes Quote Link to comment https://forums.phpfreaks.com/topic/121086-php-mysql-problem/#findComment-624235 Share on other sites More sharing options...
Ashoar Posted August 24, 2008 Author Share Posted August 24, 2008 MYSQL isnt on my computer. It is being used on a web host along with php. Quote Link to comment https://forums.phpfreaks.com/topic/121086-php-mysql-problem/#findComment-624237 Share on other sites More sharing options...
peuge Posted August 24, 2008 Share Posted August 24, 2008 Have you checked you my.cnf config file, make sure the path to socket is right, dunno where it would be on your server. Dunno much about it but seems its looking in the wrong place? Quote Link to comment https://forums.phpfreaks.com/topic/121086-php-mysql-problem/#findComment-624308 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.