Thursday 17 June 2010

How to import sql file using linux?

First go to the directory where your sql file is saved and then type the following: 

$ mysql -u root -p payforme < payforme_dev.sql

Here  
root is the username of mysql
payforme is the database name
payforme_dev.sql is the sql file.

Cheers!

No comments:

Post a Comment