Allows you to create and restore local MySQL / MariaDB backups.
# Requirements #
Requires a /root/.my.cnf file which contains credentials so the user root can login to the MySQL server with sufficient privileges without entering a password. Example /root/.my.cnf contents:
```
[client]
user=root
password=mysecretpassword
```
Don't forget to change the permissions:
```
sudo chmod 600 /root/.my.cnf
```
Test if it works with:
```
PING=$(sudo mysqladmin ping 2>/dev/null)
if [ "$PING" != "mysqld is alive" ]; then
clear && echo "Error: Unable to connect to MySQL Server!"
else
clear && echo "Successfully connected to the MySQL server!"