On a cPanel server, if you need to import a SQL file into a database – here is the command to get this done:
mysql cpanelusername_database < sqlfilename.sql
And, if you want to export the database to a sql file – the command to do this is:
mysqldump cpanelusername_datbase > databasename.sql
That’s it!
This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.



