VDS Sphera Knowledge Base

Main / Browse Categories / MySQL / How can I import a MySQL database?

Print article Print Article    Email article Email Article

How can I import a MySQL database?
From the SSH command line:
mysql -h localhost DATABASE < YOURFILE.sql
Replace DATABASE with the name of your database and YOURFILE with the actual name of your file.

NOTE: Accounts created before July 7th, 2003 will want to use:

/usr/local/mysql/bin/mysql -h localhost DATABASE < YOURFILE.sql

User Comments
How can I import a MySQL database?  
There are no user comments for this topic.
 

Attachments
No attachments.

Related Articles
 How can I connect to MySQL using SSH?
 How can I dump a MySQL database from the command line?
 My Disk Quota is unusually high. What can I do?
 Where is MySQL located?
 Where is the MySQL log file?

Why Choose Our Hosting?

  • Unmatched Customer Support!
  • Virtual Private Server technology provides a rich, dedicated-like environment for every account.
  • We are known for our superb quality, performance and flexible hosting environment. We manage the server, software, and network you do the rest.
Continue reading »

Featured Hosting Plan


Learn more about our VPS Extreme

What is Included?

  • PHP 5/MySQL 5
  • Parallels® Plesk Panel 10
  • Unique IP Address
  • Daily VPS Backups (Off Server)
  • SAS Hardware Raid diskspace
  • CentOS 5 x86_64 bit
  • Multi-homed Tier 1 Bandwidth
  • Full Upgrade capabilities
Continue reading »