How to Backup and Restore MySQL Database?

Problem

If without MySQL manager installed, how to backup and restore MySQL database?

Solution

Login to MySQL server, open command window, input an run:

Backup MySQL Database



C:\> mysqldump --user=[DatabaseUserName] --password=[Password]  [DatabaseName] > [DatabaseBackupFile]

Restore MySQL Database



C:\> mysql --user=[DatabaseUserName] -p  [DatabaseName] < [DatabaseBackupFile]

Other Resources

  1. User Manual
  2. How to restore your MySQL database from dump file.

Navigator

Other Knowledgebase Articles

Basic SQL Hosting

# of Domains: 4
# of SQL Server Databases: 4
Disk Space: 50GB
Bandwidth: Unmetered
SQL Server 2014
Monthly: $4.99
More Information About Basic Shared SQL Server Hosting Plan

Express Hyper-V Hosting

Dedicated Memory:2GB
Disk Space: 100GB
Bandwidth: Unmetered
Windows 2012/2008: Free
Monthly: $11.99
More Information About Express Windows Hyper-V Server

Dedicated SQL Server

CPU: Quad-Core X3440 CPU
RAM: 16GB RAM
Disk: 2x120GB SSD + 300GB SATA
RAID: RAID 1
Bandwidth: Unmetered
Windows 2012/2008: Free
Monthly: $79.00
More Information About Dedicated SQL Server with SSD
SQL Server Hosting | ASP.NET Hosting | DotNetNuke Hosting | Windows VPS Hosting | Dedicated Windows Server Hosting