How to import sql dump file to mySQL database?

Hi

I need script for how to import sql dump file to mySQL database?.
Thanks in advance.

From the command line:

mysql -u user -ppassword -D dbname < import.sql

where user is the db username, password is your db user’s password, and dbname is the name of your db.