sidus / database-maintenance-bundle
Simple database maintenance with Doctrine and MySQL
Installs: 15 892
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >=7.2
- doctrine/doctrine-bundle: >=1.6
- doctrine/orm: >=2.5
- symfony/console: >=4.0
This package is auto-updated.
Last update: 2024-10-24 13:20:14 UTC
README
This bundle allows you to execute mysql and mysqldump commands without passing any authentication parameters, il will automatically uses the one declared in doctrine.
Dumping local database:
$ bin/console sidus:database:mysqldump > dump.sql
Dumping remote database to local file:
$ ssh username@host "/path/to/symfony/bin/console sidus:database:mysqldump" > dump.sql
Copying remote database to local:
$ ssh username@host "/path/to/symfony/bin/console sidus:database:mysqldump" | bin/console sidus:database:mysql
Copying local database to remote:
$ bin/console sidus:database:mysqldump | ssh username@host "/path/to/symfony/bin/console sidus:database:mysql"