Import MySQL w/ SSH

Ok...here is the scenario. I have a MySQL DB back-up using cPanel (which is just a bunch of SQL commands for creating and inserting statements). How can I add these to a new server through SSH? The new server is running Direct Admin..which is why I don't just use the control panel to add it.

I assume there is something like "mysql --makedb < sqlfile", I'm just not sure...because I haven't played w/ mysql on server side...ever (no need to till now).

Thanks everyone/anyone for the help!

 

 

 

 

Top