MyBB Community Forums

Full Version: Problem restoring database
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I had to restore the database. I deleted the original database, and files on the server. Then I installed a clean installation of MyBB and imported the sql file. I read on here that I should delete (or drop) everything in the db where I was going to restore the file and every time I've gotten this error:
Quote:SQL query:

-- MyBB Database Backup
-- Generated: 18th January 2010 at 07:30
-- -------------------------------------
CREATE TABLE mybb_adminlog (
uid int( 10 ) unsigned NOT NULL default '0',
ipaddress varchar( 50 ) NOT NULL default '',
dateline bigint( 30 ) NOT NULL default '0',
module varchar( 50 ) NOT NULL default '',
action varchar( 50 ) NOT NULL default '',
data text NOT NULL ,
KEY module ( module , action )
) ENGINE = MYISAM DEFAULT CHARSET = utf8;

MySQL said: Documentation
#1046 - No database selected

Oh Toungue Didn't remember to select the database.
Yes, the error is pretty clear on this one Wink