MyBB Community Forums

Full Version: Database Importing Problem!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

i wanted to change my host!
and while in via phpmyadmin i wanted to import my database!

This is the problem coming ;

SQL query:

-- MyBB Database Backup
-- Generated: 04th January 2008 at 09:54
-- -------------------------------------
CREATE TABLE `pspgate_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 = utf8;

MySQL said: Documentation
#1046 - No database selected 

hope will help me!

FAISAL!
Make sure you select a database on the left side of phpMyAdmin before you import your tables.
Your database actually has to exist, and you have to be running that query to that database for that to work since it is only creating tables inside a database, and not creating the database itself.