how to import database into your created database through command prompt code example Example: import database through command line mysql -u username -p database_name < file.sql