If you are using Windows PowerShell you may get the error:
The '<' operator is reserved for future use.
In that case just type the command:
cmd
To switch to the cmd shell and then retype the command and it will work.
c:\xampp\mysql\bin\mysql -u root -p my_database < my_database_dump.sql
To get back to PowerShell type:
exit