Am getting an error when importing a database into a new hosting. Error SQL query: -- ---------------------------- -- Table structure for `wp_commentmeta` -- ---------------------------- DROP TABLE IF EXISTS `wp_commentmeta` ; MySQL said: #1046 - No database selected Code (markup): Can anyone help me why this is happening. Thanks D
DROP table deletes a table from the database. If the table you are trying to delete doesn't exist it will throw an error.
Well, that is not the issue because he wrote 'DROP TABLE IF EXISTS' The issue is that 'No database selected' - I guess you can read and understand English? Good. Then please read it again---- > No database selected Well, what could that mean?
Shoot didn't see that. Probably need to add: use your_wordpress_database_name; at the top of the script.