db connection

O

old.marina

Guest
I'm afraid my question sound stupid and boring, but it's the first time I use PHP not on my localhost.
What do I have to write for these variables?
$dbName = "";
$dbPass = "";
$dbUserName = "";
$host = "";

And how can I upload the database?
I put files like
comments.frm
comments.MYD
comments.MYI

in mysql directory. Is it ok?

Thank you very much for your help.

Marina
 
T

Tempy_Incursion

Guest
Well it depends what DB server youre using, and of course the name of your DB.

If say you set it up on freesql.org, you would enter the server name in '$host', the DB name in '$dbName', the login name and password in '$dbUserName' and '$dbPass'.

$dbName = "database"; $dbPass = "yourpass"; $dbUserName = "youruser"; $host = "freesql.org";

Freesql.org, though a bit slow sometimes, is a great place to start off with MySQL! :)

As for uploading the DB, I've never managed to get MySQL working on my PWS (Personal Web Server) so I can't really help there. :(
 

Users who are viewing this thread

Top Bottom