library database-maintenance-bundle
Simple database maintenance with Doctrine and MySQL
sidus/database-maintenance-bundle
Simple database maintenance with Doctrine and MySQL
- Thursday, May 4, 2017
- by VincentChalnot
- Repository
- 1 Watchers
- 1 Stars
- 1,051 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 29 % Grown
Database Maintenance with Doctrine & MySQL
This bundle allows you to execute mysql and mysqldump commands without passing any authentication parameters, il will
automatically uses the one declared in doctrine., (*1)
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"