-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
port option #4
Comments
Hey great idea. I'll get that added in! |
I started with this in my own fork - please have a look. Should not be that much changes needed. Alternatively we could make a port an optional part of the hostname, e.g. 1.2.3.4:3308 as a target database and 1.2.3.5 as a source database (which would default back to 3307). ssh login@server -L 3306:127.0.0.1:3307 -N |
Have you tried just specifying the port option in the host param? db-sync [options] [--] 127.0.0.1:3307 123.32.1.2:3307 <database.table> The command uses PDO under the hood so it should work... |
|
Added port parsing in 650bae6 |
to sync remote database is often done via SSH tunneling - then MySQL can be reached at a different port. The port option is missing?
The text was updated successfully, but these errors were encountered: