lawandorder Posted April 14, 2007 Posted April 14, 2007 I have developed my site on a laptop and just today, uploaded it to a webserver. I exported the database and imported it into a new database I created on the web server. But now I don't know how to reference the database in the configure files...it still says "localhost". I would be very grateful for any information on how do I find this information. Thanks // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'root'); define('DB_SERVER_PASSWORD', 'xxxxxx'); define('DB_DATABASE', 'roguebaby');
MarcellaE Posted April 14, 2007 Posted April 14, 2007 I have developed my site on a laptop and just today, uploaded it to a webserver. I exported the database and imported it into a new database I created on the web server. But now I don't know how to reference the database in the configure files...it still says "localhost". I would be very grateful for any information on how do I find this information. Thanks // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'root'); define('DB_SERVER_PASSWORD', 'xxxxxx'); define('DB_DATABASE', 'roguebaby'); that's it. if your database is roguebaby and your username is root and you have your password, you're good to go.
lawandorder Posted April 14, 2007 Author Posted April 14, 2007 thanks...but if that was it I wouldn't have written the post.....I was able to work it out though. The hosting company appends my truncated username in front of the database name and user name. They obviously have some reason for doing this but it took me hours to work this out....why is it never easy ?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.