MyBB Community Forums

Full Version: I need to re-install myBB but keep all data
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
We were forced to move from our host to another one, our previous host was extremely slow, and with just 10 users simoultaniously online the website went offline and gave us a "cpu limit" error.

We moved to a host which just works. everything works fine.
Unfortunatly, it wasnt just a matter of moving our files, importing the database and done, nope.
The index is a blank page.
I resuted to the error logs.
and there's a HUGE  list off missing file errors 
"TIMESTAMPANDIP.....file does not exist: /home/username/public_html/404.shtml
Makes sence i guess, because the username is diffrent than our previou host.
Were now forced to reinstall myBB i guess, but we need to keep all posts, usergroups, user's and data ETC.
Plugins and themes do not matter.

Hope sombody can help
what is your forum url and which version of MyBB you are using ?
(2016-04-24, 04:20 PM).m. Wrote: [ -> ]what is your forum url and which version of MyBB you are using ?

Im using 1.8, and my forum URL is http://londonrp.tk

I've already gone ahead and replaced the old forum with the fresh install, but i still have the old version of the site if thats needed.
(2016-04-24, 04:04 PM)marceltjeg Wrote: [ -> ]We were forced to move from our host to another one, our previous host was extremely slow, and with just 10 users simoultaniously online the website went offline and gave us a "cpu limit" error.

We moved to a host which just works. everything works fine.
Unfortunatly, it wasnt just a matter of moving our files, importing the database and done, nope.
The index is a blank page.
I resuted to the error logs.
and there's a HUGE  list off missing file errors 
"TIMESTAMPANDIP.....file does not exist: /home/username/public_html/404.shtml
Makes sence i guess, because the username is diffrent than our previou host.
Were now forced to reinstall myBB i guess, but we need to keep all posts, usergroups, user's and data ETC.
Plugins and themes do not matter.

Hope sombody can help

You don't need to reinstall the whole mybb once again.
download your database backup and import it
2.Go to phpmyadmin and import the same database 
3.Upload your saved mybb files 
4.Go to inc folder and open up config.php
you'll see this 

$config['database']['type'] = 'mysqli';
$config['database']['database'] = 'database name';
$config['database']['table_prefix'] = 'mybb_';

$config['database']['hostname'] = 'database host';
$config['database']['username'] = 'database Username';
$config['database']['password'] = 'yourdatabase password';

fill up those with your database information 
5.OpenUP settings.php from inc folder and search for this

$settings['cookiedomain'] = "your cookie path";  --- you can use this to find your cookie path - https://dennistt.net/mybb/cookiesettings.php

$settings['cookiepath'] = "/";

6.Search for this =  $settings['bburl'] = "your domain";
7.place the new domain over there. thanks! [Image: smile.gif]
Hmmm, tried all that. The Database backup is huge and phpmyadmin seems to choke on it. I have tried to run it as several smaller imports, but they throw lots of SQL errors.

If I try to open the backup with MySQL Workbench, it tells me the file is not UTF-8 encoded, and if I try to run it without converting, Workbench crashes...