Import error from mysql command line
look like You try to run mysql(?d) from inside mysql console
this command must be run from OS command line:

c:\Program Files\MySQL\bin&gt;mysql -u root -p sample &lt; d:/sample.sql


all from Windows command line