1 jibberjab Jul 21, 2007 02:28
3 jibberjab Jul 21, 2007 04:22
By "already config'd variable" do you mean this one:
/**
* Once you have edited this file to your settings, set the following to 1 (one):
*/
$config_is_done = 1;
?
Also, following the procedure you've outlined above, does that set all the fields at 0, or will that also reinstall all the pre-filled posts that usually show up when b2evo is first installed?
jj.
4 balupton Jul 21, 2007 04:35
Yeah that variable, that way you don't need to reconfigure your database options etc.
What do you mean by set all fields to 0?
It will reinstall all pre-filled posts, reinstalling the database reinstalls everything you create (posts, users, stats, settings), will be just like a brand new installation, but with your same files/customizations/extensions.
5 jibberjab Jul 21, 2007 04:57
By resetting all fields to 0 (bad explanation) I was asking if it basically creates an empty database (first new post would be in Field 1) or does it recreate all the default posts, so the first new user post would be in Field 6 or 7 or whatever (I forget how many default posts are included, but you get the idea)
Ok, so as far as this code
/**
* Once you have edited this file to your settings, set the following to 1 (one):
*/
$config_is_done = 1;
goes, do I leave that at 1, or do I set it to 0, do the reinstall, and then set it back to 1?
jj.
6 balupton Jul 21, 2007 05:13
Well leave it as 1, after the install it will be 1 as well, it's only 0 if you haven't installed b2evo before.
So in the install your do:
Delete b2evolution tables: If you have installed b2evolution tables before and wish to start anew, you must delete the b2evolution tables before you can start a new installation. WARNING: All your b2evolution tables and data will be lost!!! Your Cafelog/b2 or any other tables though, if you have some, will not be touched in any way.
then
New Install: Install b2evolution database tables with sample data.
Always good to do a mysql db backup via cpanel before you do anything like this, so if later on you go, oh shit, i deleted this and i need it, you will have a copy.
7 jibberjab Jul 21, 2007 05:16
Cool, thanks for the info.... I'll be doing this over coffee tomorrow morning. :)
jj.
If you just want to reinstall the database (so all the stuff that is customizable in the admin area), then open up your _basic_config.php set $allow_db_reset to 1, as well as the already config'd variable (i forget what it's called), then run the install script (the install script doesn't do any file changing, unless you haven't set up _basic_config.php yet).