Backup code using PHP in windows

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Vishak
Forum Newbie
Posts: 1
Joined: Mon Dec 06, 2010 11:29 pm

Backup code using PHP in windows

Post by Vishak »

My requirement is to backup the database of my application run locally in my system.

The command is
mysqldump -u user_name -ppasswd databse_name > backup.sql

To run this one can use the system PHP command.

But my problem is the above command works in linux but not in Windows.

Do I need to make some changes to the php.ini file in Windows for the system command to work.

Or is there any other way to backup my database?
Post Reply