Help - Search - Members - Calendar
Full Version: Newbie Question - MySQL socket change
The Uniform Server BBoard > Support > Uniform Server - Windows > MySQL
couch-potatoe
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
olajideolaolorun
There should be a way.. try editing the my-small.cnf file or the php.ini file.
couch-potatoe
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
olajideolaolorun
Oh ok... Had the same problems with 3DS Max's License System. Uses that port for something....

Thanks biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.