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
Import into the database:
mysql -u username -p database_name < /file path/file_name.sql
Export from the database:
mysqldump -u username -p database_name > /file path/file_name.sql
After these commands, a prompt will ask for your MySQL password.