Database uploading error

215 views
asked Apr 21, 2012 in Database by Jake (580 points)
Greetings all..

I am trying to migrate my website. I'm using phpmyadmin and I'm not able to upload the databases. I tried uploading the database in compressed (tar.gz)and .sql (uncompressed) formats. In both cases I got the following error:


SQL query:

--
-- Table structure for table `ads`
--
DROP TABLE IF EXISTS `ads` ;


MySQL said:

#1046 - No database selected

I would appreciate it if someone can please help me out.

regards

1 Answer

0 like 0 dislike
answered Apr 21, 2012 by WebProX (12,200 points)
hi..

Create the database first and then after you create it click on the database in the left side menu so that you are inside that database. Then inside there you will see import.
...