View Full Version : Deciphering connection details from PhpMyAdmin
mouse
07-21-2002, 09:08 PM
I have no details as to how to connect to my database although I am able to create one through phpmyadmin. While I twiddle my thumbs waiting for my host to send me some connection details is it possible to maybe work out what they are? I'd guess my username and password are ones I chose and are the same for the whole kaboodle so it's the address of the db I'm looking for, any clues?
firepages
07-21-2002, 11:10 PM
if the DB is on the same machine... 9/10 its
mysql_connect("localhost,"username","password");
1/10 its
mysql_connect("127.0.0.1:3306,"username","password");
where 127.0.0.1 is the host machine IP - else if the DB is on a remote server then it will be the latter 'IP:port'
<edit> just removing your smiley :) </edit>
Jeewhizz
07-22-2002, 10:15 PM
Just log into ftp, then go to the php myadmin folder and view a file called config.inc.php - it'll be in there :)
Jee
vBulletin® v3.8.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.