Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How to connect?
December 17, 2004, 5:02 am
rate this thread
$db_name = "your_database";
$username = "your_user";
$password = "your_MySQL_password";
I'm not sure about
$db_server = "mysql.server.com";
Although I got a domain name. How to find out what is SQL hostname?
If I had that hostname, would that be enough to connect to the mySQL
database (if I dont got access to the server itself, i.e. no FTP access or
Thanks in advance
Re: How to connect?
ultimately andy is correct that you should consult the persons hosting
the site (if its virtual site or not).
if you have shell access to the server to modify your code... can you
use the prompt db client 'mysql' if so the chances are its on the
else if you have to enter a -h flag for the command its most likely else
where and thats the db's address
if you do not have shell access (ssh, ftp, telnet...etc) (?how are you
writing the code files) then you best bet is just to try 'localhost'
first then try 'yourdomain.com' just in case access is disabled from the
.... will expound on request.