Database Prefix
After searching on Google for several days, I found instructions on how to change the database prefix AFTER installing vanilla....
That's pretty useless in my honest opinion. It's like building a car with an engine that doesn't fit only to take out and fit a new engine after it's off the assembly line and at the car dealership, or something.
Every other open source script with an installer seems to have the "database prefix" area on the setup/install page.
How do I INSTALL Vanilla forums with an alternate prefix?
Thank you for your time.
Best Answer
-
Shadowdare MVP
You can create a new file called
config.php
in the/conf
folder with just the setting to change the prefix and it should be loaded when you open the install page. I'm not able to confirm that this works at this moment./conf/config.php
<?php if (!defined('APPLICATION')) exit(); $Configuration['Database']['DatabasePrefix'] = 'GDN_';
Edit: Confirmed to work by others.
Add Pages to Vanilla with the Basic Pages app
5
Answers
You can create a new file called
config.php
in the/conf
folder with just the setting to change the prefix and it should be loaded when you open the install page. I'm not able to confirm that this works at this moment./conf/config.php
Edit: Confirmed to work by others.
Add Pages to Vanilla with the Basic Pages app
This should work just dandy. I just re-read through the bootstrap sequence and it should read the config.php file even if it isn't installed.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@shadowdare that works perfectly. I've installed all my (test) installations that way and never had any problems with it.