Quantcast
Viewing all articles
Browse latest Browse all 5

MySQL Backup/Restore : XAMPP

This post saved me hours of frustration and headache when I was trying to perform the mysqldump and mysql operations on my local machine.

If you have XAMPP installed on your local machine and you want to perform mysqldump (make a backup) or mysql (restore a backup) operations, you need to know the path to those MySQL applications. They’re all located here on a typical XAMPP installation:

C:xamppmysqlbin

To get the command line window:

  1. START->Run…
  2. type in cmd & hit return

That means if you need to backup from the command line you use this:

C:xamppmysqlbinmysqldump -uxmysqlusername -p -hmysql.example.com xdatabase >./myfile.txt

And if you want to restore you use this:

C:xamppmysqlbinmysql -uxmysqlusername -p -hmysql.example.com xdatabase <./myfile.txt


Viewing all articles
Browse latest Browse all 5

Trending Articles