Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I find the the database location etc. now that I've uploaded to a web server ??


lawandorder

Recommended Posts

Posted

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');

Posted
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.

Posted

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 ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...