MySQL Forums
Forum List  »  Newbie

Re: Having trouble Connecting to multiple instances on remote server
Posted by: Chris Isaksen
Date: March 22, 2013 06:26AM

This will happen even on the loacl server.

connecting to instance #2

shell> mysql -p --port 3307

will get the error "Can't connect to local MySQL server through socket 'var/lib/mysql/mysql.sock'

but if I use this command

shell> mysql -p --port 3307 --protocol tcp it works just fine.


Stupid me - the firewall was the culprit for the remote session, I noramlly turn it off for testing.
thanks



Edited 1 time(s). Last edit at 03/22/2013 06:36AM by Chris Isaksen.

Options: ReplyQuote


Subject
Written By
Posted
Re: Having trouble Connecting to multiple instances on remote server
March 22, 2013 06:26AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.