PDA

View Full Version : connection string for mysql?



sldhana
12-16-2008, 10:44 AM
I just need to know how what's the connection string for the database I created in the control panel. I've been testing this on my local server on my home machine, and obviously localhost is not going to work, but I cannot seem to find this string anywhere on the control panel. Pointers please.
:confused:

felgall
12-16-2008, 12:17 PM
For code running on your site and accessing the database on your site you should use localhost.

For code elsewhere accessing your site you need to use the domain name for the lwhere to find the database and need to have the IP address where the code is running whitelisted.