Helpful Information
 
 
Category: MySQL
Deciphering connection details from PhpMyAdmin

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?

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>

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










privacy (GDPR)