Mysql dump restore doing some funny stuff
I think you meant this:

mysql -u root -p fms &lt; /device.sql 


This will import SQL from /device.sql into the fms database

mysqldump only outputs and is not designed to input anything

Doing this

mysqldump -u root -p fms


will echo the mysqldump all all tables currenly in the fms database