Home Guides Glossary

Importing MySQL Databases via SSH

Servers without a control panel (such as cPanel, Plesk, or Simple Control Panel) do not have phpMyAdmin installed. To manage databases without a control panel, you need to use the SSH command line to import .SQL backup files.

To Import MySQL Databases via SSH

  1. Open the .SQL file in a text editor to ensure it is formatted to use the correct database. There should be a use database command at the top, and it should reference the database that is receiving the imported data. If this command is not included, you can add or use it once you log in to MySQL.
  2. Log in to SSH as the root user. If you do not know how to do this, see How do I access MySQL using SSH?
  3. To log in to MySQL, type mysql -u username -p, where username is your database username.
  4. When you see Enter password:, enter your password for that MySQL user.
  5. If you did not include the use database command in the .SQL file, select the target database of the import. Do this by typing use database_name; and then press Enter.
  6. Type SOURCE /path/to/sql/file.sql, and then press Enter.
  7. Monitor the running import log to check for errors.
  8. To confirm the data was imported correctly, type show tables; and then press Enter.
  9. Type select * from table; and then press Enter. Your imported MySQL database tables display.

Domain Registration

Pay less for website domain names. Register your own .com, .net or .org for as low as $10.18 per year. We have everything you need to get online with your new domain.

Website Builder

For as little as $3.89 per month you can build your Website online with Website Builder using our easy to use professional templates. Play Video - Demo

Quick Shopping Cart

Build and run your own successful online store in minutes. You're just five easy steps away! Shopping Cart works with Google® and eBay® Play Video

Website Hosting

Everything needed to give your website the high-performance home it deserves.  Protect transactions and secure your customer's data with a SSL Certificate

Copyright © 2005 - 2017. All rights reserved. Privacy Policy