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
Go to the directory where you have the MySQL executable. -u for username and -p to prompt for the password:
-u
-p
C:\xampp\mysql\bin>mysql -u username -ppassword databasename < C:\file.sql