Restoring a MySQL Database from the Windows Command Line

To restore a MySQL database from the Windows command line, use this command:

 mysql -u USERNAME -pPASSWORD DBNAME < d:\path\to\db.sql