Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Database help
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Database help
Database help
13-03-2012 9:27 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi, can anyone guide me to help on how to set up a second database in mysql. I have one already running a SMF forum and would like a second one for testing forum aspects without interfering with my existing one. I have limited knowledge of mysql and ccgi beyond the stting up of my SMF 2.0.2 forum.
Any help is much appreciated.
Any help is much appreciated.
Message 1 of 3
(1,935 Views)
2 REPLIES 2
Re: Database help
14-03-2012 12:47 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Assuming you are referring to the webspace included with certain legacy accounts then only one MySQL database is allowed and provided.
However you can still achieve what you described, just use a different table prefix when creating the set of tables for the second SMF installation. When you installed your first copy of SMF you will have created a Settings.php file which includes the line "$db_prefix = 'smf_';. For your second installation if that is changed to "$db_prefix = 'smf2_';" the tables created will not interfere with the first installation.
If you used the installation dialogue to create the Settings.php file one of the questions to be answered is to give the required Database prefix. Just ensure you specify smf2_ . Since you are using the same database the database name, user and password information will be the same as before.
However you can still achieve what you described, just use a different table prefix when creating the set of tables for the second SMF installation. When you installed your first copy of SMF you will have created a Settings.php file which includes the line "$db_prefix = 'smf_';. For your second installation if that is changed to "$db_prefix = 'smf2_';" the tables created will not interfere with the first installation.
If you used the installation dialogue to create the Settings.php file one of the questions to be answered is to give the required Database prefix. Just ensure you specify smf2_ . Since you are using the same database the database name, user and password information will be the same as before.
David
Message 2 of 3
(271 Views)
Re: Database help
14-03-2012 9:11 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
spraxyt - thank you for your clear instructions. I can now see my way to creating a test forum. The database prefix smf2 was the key point that I wasn't aware of.
Message 3 of 3
(271 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page