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
I kept running into the problem where the database wasn't created.
I fixed it like this
mysql -u root -e "CREATE DATABASE db_name" mysql db_name --force < import_script.sql