Error ssh tunneling mysql requests
Hi,
So I'm trying to use an ssh tunnel to access a remote mysql server. I'm using the following ssh command: Code:
ssh -vv -L 3307:127.0.0.1:3306 -N me@server Code:
mysql -u root -p -h 127.0.0.1 -P 3307 Code:
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0 Code:
debug1: Connection to port 3307 forwarding to 127.0.0.1 port 3306 requested. I am able to tunnel a vnc session using the same client and server boxes, so I know ssh is basically working well. I think the problem is with mysql but I'm not sure. Thanks in advance for any help. Brian |
Quote:
This might be something to do with the following lines of /etc/rc.d/rc.mysqld: Code:
# To allow outside connections to the database comment out the next line. |
Thanks, that fixed it. The daemon was not listening. I had assumed that leaving "skip-networking" commented in my.cnf was enough. Thanks for pointing out that part of the rc.mysqld file.
Brian |
All times are GMT -5. The time now is 06:20 AM. |