How to fix the “#1046: No database selected” error in phpMyAdmin

  • Create the new database on your server, then write down the name.
  • Open your .sql file with a text editor
  • Insert the following line right before the first CREATE TABLE instruction in your .sql file: USE your_database_name_here;
  • Save your file, then import it in phpMyAdmin.

Reference :
wisercoder

Leave a Reply

Your email address will not be published. Required fields are marked *