Importing Databases via SSH

Here is a quick explanation of how to import a MySQL database that has been dumped into a text file.

1. Create a new database and mysql user in Cpanel. Refer to our Cpanel documentation for more info. Make sure the user has full permissions on the database.

2. Upload your sql file via FTP to the root of your account.

3. Login via SSH and enter the following command...

mysql -u USER -p DBNAME < dump.sql

Where USER is the database user you created, DBNAME is the name of the database you created and dump.sql is the name of the file you uploaded.

Was this answer helpful?

 Print this Article

Also Read

What is an Addon Domain

An addon domain is simply another independent domain running from your web hosting. All our UK...

Using RV Sitebuilder

We provide a fully featured website builder,  RV Sitebuilder which is accessed from the...

Uploading to an Addon Domain

To upload to an addon domain with an FTP client you have 2 options : 1. login via FTP to your...

How to Change your cPanel Password

There are two ways to change your cPanel password. The easiest way to do this is from inside your...

How to Login to cPanel

Your UK Web Hosting account comes with the industry leading control panel cPanel. When you sign...