nanbando/mysql

Nanando-Plugin to backup mysql databases

Installs: 4 955

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 2

Open Issues: 3

Type:plugin

0.5.0 2024-07-24 14:28 UTC

This package is auto-updated.

Last update: 2024-10-24 15:01:38 UTC


README

Nanando-Plugin which uses mysqldump to backup and restore mysql databases.

Installation

You can install this plugin by adding nanbando/mysql to the require-section of the nanbando.json file.

Configuration

{
    "name": "application",
    "backup": {
        "your_database": {
            "plugin": "mysql",
            "parameter": {
                "username": "root",
                "password": "***",
                "database": "your_database",
                "host": "127.0.0.1",
                "port": "3306"
            }
        }
    },
    "require": {
        "nanbando/mysql": "^0.1"
    }
}

As an alternative you can use the environment variable of Doctrine DBAL:

{
    "name": "application",
    "backup": {
        "your_database": {
            "plugin": "mysql",
            "parameter": {
                "databaseUrl": "%env(DATABASE_URL)%"
            }
        }
    },
    "require": {
        "nanbando/mysql": "^0.1"
    }
}

Documentation

See the official documentation on nanbando.readthedocs.io/en/latest/plugins/index.html.