MySQL Restore from sql dump

mysql -h localhost -u myUserName -p"myPassword" myDatabaseName < /pathToFile/sqldump.sql

-h = host name, usually (but not always !) localhost

-u = user name

-p = password (no space between -p and the password)

Also database selection may be added:

--database=myDbName