An open API service indexing awesome lists of open source software.

https://github.com/codeadamca/php-mysql-backup

A basic example of backing up a MySQL database using mysqldumb and exec.
https://github.com/codeadamca/php-mysql-backup

backup mysql mysqldump php

Last synced: 7 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://github.com/codeadamca/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

* [Visual Studio Code](https://code.visualstudio.com/)
* [PHP](https://www.php.net/)