Skip to content

Este script permite la sincronización de 2 base de datos MySql entre el servidor remoto y servidor local

Notifications You must be signed in to change notification settings

isidroamv/mysql-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

This script enables you to copy the structure and content of databases back and forth between remote and local databases. Remote databases are accessed through SSH tunnels.

This script operates in two modes. The mode is passed in the first parameter -- put: Copy a local database to a remote server -- get: Copy a remote database to a local server

When using a config.ini file to specify your database credentials the format is:

[remote] ssh = [email protected] username = remoteDbUsername password = remoteDbPassword database = remoteDbName

[local] username = localDbUsername password = localDbPassword database = localDbName

Example usage: Replace your local database with a remote database dbsync.php get

Example usage: Replace a remote database with your local database dbsync.php put

Example usage using extrenal config file: Replace a remote database with your local database dbsync.php put path/to/config.ini

About

Este script permite la sincronización de 2 base de datos MySql entre el servidor remoto y servidor local

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages