-1

Possible Duplicate:
PHP download backup of MySQL database

I want a one click database backup. backup can be saved as .sql or .zip or .txt file in a folder which I define.

3
  • 4
    look into the mysqldump program Commented Dec 28, 2011 at 11:33
  • my program runs in localhost(windows/xampp). how can I do this? Commented Dec 28, 2011 at 11:39
  • 1
    Click? Why do you want to have to click? If you're backing up - which is good - you want to do it regularly so automate it. Commented Dec 28, 2011 at 11:40

2 Answers 2

0

I did the same thing in my C# app and started a console call of mysqldump like this:

mysqldump -u username --password=yourpass db_name > outputfile.sql
Sign up to request clarification or add additional context in comments.

Comments

-2

You can backup database or tables using phpMyAdmin

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.