Categories
Linux

ERROR 1046(3D000): No Database Selected when import Database by MySQL

MySQL error 1046, which stands for “No Database Selected,” is one of the most common errors that can prevent database operations. It happens when you run a query and don’t specify the target database.

Open .sql file using Notepad and Add below into .sql file

USE database_name;

e.g.