Jump to content
The Uniform Server Community

Newbie Question - MySQL socket change


couch-potatoe
 Share

Recommended Posts

Hi guys,

 

Probably a dumb question, but is it possible to change the location of the socket for mysql_connect within the uniform server, I'd like to change it to match the path my host server uses so I dont need to keep rememberihg to modify my php code depending on weather I'm testing localy using the uniform server or uploading stuff to my host - I just put a live database out of action for 2 days (oops) because I forgot to tweak the code back having played with the php locally...

 

Cheers

 

Couch Potatoe

Link to comment
Share on other sites

It OK, I've sussed it already - I didnt need to change anything - it would appear that the normal socket 3306 is being used locally and the file path works on my host...

 

I'm guessing that the socket is tried first, and the file path is used if the socket cant be found.

 

Cheers

 

Couch

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...