This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Combined MySQL Database Management Script | |
# Allows EITHER deleting selected databases OR importing selected/all databases from .sql.gz files. | |
# WARNING: The delete function is EXTREMELY DANGEROUS and IRREVERSIBLE. Use with caution. | |
# REQUIREMENTS | |
## mysql client, gunzip, find, grep, sed (standard Linux tools) | |
## Bash v4+ recommended for mapfile (can be adapted for older Bash if needed) |