The instructions are slightly incorrect - or should I saym I can't get the syntax to work as stated.
The instructions say...
mysqldump –u username –p=password databasename > filename.dump
mysql –u username –p=password databasename < filename.dump
But the method I use is...
mysqldump -u username -ppassword databasename > backup.dump
mysql newdatabasename -u username -ppassword < backup.dump
Which is similar to the code that Josh wrote above - but the '=' before the password will error out as mentioned in the documentation.