MyBB Community Forums

Full Version: #1046 No database selected - need help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've migrated to a new host, i made a fresh install with the latest mybb. When i go into my cpanel and select phpmyadmin and import my backup of my previous forum i get this error:

Quote:Error
SQL query:

-- MyBB Database Backup
-- Generated: 08th March 2008 at 20:47
-- -------------------------------------
CREATE TABLE mybb_adminlog (

uid int( 10 ) unsigned NOT NULL default '0',
dateline bigint( 30 ) NOT NULL default '0',
scriptname varchar( 50 ) NOT NULL default '',
action varchar( 50 ) NOT NULL default '',
querystring varchar( 150 ) NOT NULL default '',
ipaddress varchar( 50 ) NOT NULL default '',
KEY scriptname ( scriptname , action )
) ENGINE = MYISAM DEFAULT CHARSET = latin1;

#1046 no database selected


i referenced this link on the forum for help: http://community.mybboard.net/archive/in...29457.html

and a member said this: "Well, the error doesn't lie. You have to have selected your MyBB database before you import your database backup, try it again after you select your db."

what is he referring to and can anyone help me resolve this problem?
Make the database first. Then select in phpmyadmin. Then choose the import tab. Wink

It import doesn't make the database automatically so you have to make it first.

Also don't forget to change the MySQL info in your config file Wink.
Thanks Net- i'll try this.
Thank you- this helped immensly! I'm up and running again.
No problem glad I could help.