Skip to content

A basic example of backing up a MySQL database using mysqldumb and exec.

Notifications You must be signed in to change notification settings

codeadamca/php-mysql-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backing up a MySQL Database using PHP and mysqldump

A basic example of backing up a MySQL database using mysqldumb and exec.

You may need to allow PHP to use the exec() function. Run phpinfo() to check if exec() is enabled.

This code sample uses a .env files as described on the php-env repo.

For information on what privileges the MySQL user needs to execute the mysqldump command check out this Stack Overflow question: https://dba.stackexchange.com/questions/55546


Repo Resources

About

A basic example of backing up a MySQL database using mysqldumb and exec.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages