I have a .sql file with an export from phpMyAdmin. I want to import it into a different server using the command line.
.sql
phpMyAdmin
I have a Windows Ser
To import a single database, use the following command.
mysql -u username -p password dbname < dump.sql
To import multiple database dumps, use the following command.
mysql -u username -p password < dump.sql