Diaz Posted August 8, 2005 Share Posted August 8, 2005 Hi Can someone please point me in the right direction for using the same database for a second site. I do not mind if I get links to past post about this, just can not find them my self. TIA Analiza ______________________ www.craftshop-online.com Link to comment Share on other sites More sharing options...
Iggy Posted August 8, 2005 Share Posted August 8, 2005 Change the config on your second site to reference the same db as the first? Iggy Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
Diaz Posted August 8, 2005 Author Share Posted August 8, 2005 Change the config on your second site to reference the same db as the first? Iggy <{POST_SNAPBACK}> How do I do that :blush: Link to comment Share on other sites More sharing options...
Iggy Posted August 8, 2005 Share Posted August 8, 2005 Check the config of your first store for the db settings. You'll find it in /includes/configure.php. If the 2 sites are on the same machine and the db is local just copy that portion into the config of your second store. Should look something like: define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'killerbees'); define('DB_SERVER_PASSWORD', 'wedontneednostinkinpasswords'); define('DB_DATABASE', 'OSC14'); HTH, Iggy Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
Diaz Posted August 9, 2005 Author Share Posted August 9, 2005 Darn, I just copied a folder from the other store to the new one and had to reset the whole thing again! :blush: It showed all the items right away but once I clicked on them they all went back to the old store. LOL (Not) I guess what you just posted will not do that Iggy, right? :'( TIA Link to comment Share on other sites More sharing options...
Iggy Posted August 9, 2005 Share Posted August 9, 2005 Yep. You only want to pull data from the database so replacing the config just loads up all the old url info. Don't do that :-" Open the file instead once the second store is up and running then manually copy/paste just the info you need in the second config file. All you need is there in the example above. Iggy Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.