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.
- Host: GitHub
- URL: https://github.com/codeadamca/php-mysql-backup
- Owner: codeadamca
- Created: 2022-09-10T20:30:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T22:20:41.000Z (11 months ago)
- Last Synced: 2025-03-31T07:18:36.049Z (9 months ago)
- Topics: backup, mysql, mysqldump, php
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)