Move a database from a linux to another linux

As you said like the above,
I tried to use mysqldump.
And the below comes from the shell emulator of my xubuntu.

dotker@dotker:~$ ls -lh geo2.sql
-rw-rw-r-- 1 dotker dotker 24  9월 20 18:56 geo2.sql
dotker@dotker:~$ mysql -u root -h localhost -p geo < geo2.sql
Enter password: 
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; 
check the manual that corresponds to your MySQL server version 
for the right syntax to use near 'Terminal close' at line 1

In order to restore geo2.sql as geo, I type “~$ mysql -u root -h localhost -p geo < geo2.sql”
but it produces ERROR 1604.
What is wrong in the code above?