Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

local host question


Guest

Recommended Posts

Should the word "localhost" be replaced with "mysitename.com" or anything else in each of my configure.php files? or should it just left as "localhost"...I just don't get it !!!!

 

 

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'myusername');

define('DB_SERVER_PASSWORD', 'mypassword');

define('DB_DATABASE', 'mydatabase');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

Link to comment
Share on other sites

Should the word "localhost" be replaced with "mysitename.com" or anything else in each of my configure.php files? or should it just left as "localhost"...I just don't get it !!!!

 

localhost is fine. if it's workin', don't fix it!

Link to comment
Share on other sites

localhost means that the database software is running on the same server as the webserver s/w (usually Apache). This is common but not always the case, some hosting companies run the database software on dedicated database servers. If this is the case you'll find information on how to connect to the db servers in your site's control system.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...