I have a MySQL file, db.sql. I have tried to import it using:
db.sql
mysql -uroot -p[password] db < db.sql
All I get is a listing of m
Not sure if your example was a typo or not, but for starters you need to have a space in between your flags and their values, roughly like this:
mysql -u root -p [password] db < db.sql