Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vincentchalnot/sidusdatabasemaintenancebundle
Simple database maintenance with Doctrine and MySQL
https://github.com/vincentchalnot/sidusdatabasemaintenancebundle
Last synced: 4 days ago
JSON representation
Simple database maintenance with Doctrine and MySQL
- Host: GitHub
- URL: https://github.com/vincentchalnot/sidusdatabasemaintenancebundle
- Owner: VincentChalnot
- Created: 2017-05-04T09:55:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-24T05:01:51.000Z (over 3 years ago)
- Last Synced: 2024-10-08T03:09:10.246Z (about 1 month ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.## Dumping local database:
```bash
$ bin/console sidus:database:mysqldump > dump.sql
```## Dumping remote database to local file:
```bash
$ ssh username@host "/path/to/symfony/bin/console sidus:database:mysqldump" > dump.sql
```## Copying remote database to local:
```bash
$ ssh username@host "/path/to/symfony/bin/console sidus:database:mysqldump" | bin/console sidus:database:mysql
```## Copying local database to remote:
```bash
$ bin/console sidus:database:mysqldump | ssh username@host "/path/to/symfony/bin/console sidus:database:mysql"
```