MySQL import database file #1046 – No database selected error

phpmyadmin imports database error:
SQL query:
CREATE TABLE `assignment_status` (
`id` int(10) UNSIGNED NOT NULL,
`description` varchar(100) NOT NULL DEFAULT ‘unknown’
) ENGINE=InnoDB DEFAULT CHARSET=utf8

#1, MySQL returns: #1046 – No database selected error
#2. The reason for the error is that the left database was not selected when importing

To import a database, you need to click on the database name (eg: test) “and then click “Import

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.