MyBB Community Forums

Full Version: Is it possible? -> Importing a database backup of an online forum into ...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2012-03-13, 07:16 PM)crazy4cs Wrote: [ -> ]1. Did you already installed MyBB on the localhost?

2. Is the MyBB version of your online board and localhost is same?

There is the point that the OP's mybb versions may be different, but this should only cause an issue if columns have been removed or added to the tables between the versions ... so if a column is added to the database via a later version and the mybb version on the local host is older, it should ignore that column therefore mybb should work ... if the type def of an existing column has changed you should just get a failure ( e.g invalid column type or just garbage in the variables)

I would guess if the local host has mybb already installed this could be the cache problem that I indicated earlier
My thanks goes to: @crazy4cs, @Fabio, @Project13 & @JimR
Solved
1. I zipped online MyBB directory and downloaded mybb.zip
2. Then I unzipped it into /var/www (=http://localhost in gnu/linux)
3. I extracted backup.sql.gz -> I opened backup.sql with an editor (like Geany) -> I overwrote (Ctrl+H) all "http://domain.com/" with "http://localhost/mybb/" -> save & compress again!
4. I create a fress db an imported backup
5. I amended inc/config.php & inc/settings.php -> Now http://localhost/mybb opens the forum Smile


(2012-03-13, 05:49 PM)JimR Wrote: [ -> ]did you cache to the database? ...
$config['cache_store'] = 'db';
if so it may be reading the cache from the 'online' site (now in the local db) and not the local one ... last time I did this I added the database altered config.php to reflect the local database, and if I remember correctly changed the above to files and cleared the browser cache
I swapped 'db':
$config['cache_store'] = 'files';
and cleared the browser cache -> nothing! that damn error was still permanent:
Error Message:
    Your board has not yet been upgraded. Please do so before attempting to browse it.


(2012-03-13, 07:16 PM)crazy4cs Wrote: [ -> ]1. Did you already installed MyBB on the localhost?
Yes

Quote:2. Is the MyBB version of your online board and localhost is same?
Online MyBB -> 1.6.4
Installed MyBB on localhost -> 1.6.6, because of:
(2012-03-13, 01:23 PM)Projec13 Wrote: [ -> ]Download fresh copy of MyBB from this website...
Pages: 1 2