Skip to content
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

Closed
toby78 opened this issue Nov 21, 2015 · 5 comments
Closed

port option #4

toby78 opened this issue Nov 21, 2015 · 5 comments

Comments

@toby78
Copy link

toby78 commented Nov 21, 2015

to sync remote database is often done via SSH tunneling - then MySQL can be reached at a different port. The port option is missing?

@mrjgreen
Copy link
Owner

Hey great idea. I'll get that added in!

@toby78
Copy link
Author

toby78 commented Nov 22, 2015

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

@mrjgreen
Copy link
Owner

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...

@michabbb
Copy link

hostname:port does NOT work ;(

@mrjgreen
Copy link
Owner

mrjgreen commented Mar 1, 2017

Added port parsing in 650bae6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants