Bug #353 | replication permissions fail using stunnel | ||
---|---|---|---|
Submitted: | 30 Apr 2003 22:21 | Modified: | 2 May 2003 9:03 |
Reporter: | Zebee Johnstone | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 4.0.12 | OS: | Linux (Linux clone 2.4.18-27.7.x) |
Assigned to: | CPU Architecture: | Any |
[30 Apr 2003 22:21]
Zebee Johnstone
[2 May 2003 9:03]
Guilhem Bichot
Thank you for taking the time to report a problem. Unfortunately you are not using a current version of the product your reported a problem with -- the problem might already be fixed. Please download a new version from http://www.mysql.com/downloads/ If you are able to reproduce the bug with one of the latest versions, please change the version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of MySQL. Hi, On Unix boxes, connecting to 'localhost' always ignores the port you specify. If a mysqld is listening on port 3306 and another one is listening on port 3307, mysql --port=3307 (localhost is used by default if you don't specify the host) will silently direct you to 3306!! This is because when MySQL sees localhost it uses Unix sockets, not TCP/IP (this is why the TCP port is ignored). You should use 127.0.0.1 (or the real IP in this case, instead of localhost; this will force the use of TCP/IP and not Unix sockets. mysql -h127.0.0.1 --port=3307, CHANGE MASTER TO MASTER_HOST=127.0.0.1, MASTER_PORT=3307. As regards stunnel, it is supposed to be a wrapper. A wrapper's job is to act behind the scene and be invisible to apps. So if replication works without stunnel and does not with stunnel, this is not a MySQL bug. But what you experienced is probably the "ignored port" problem mentioned above. If you still get problems, I suggest you upgrade to 4.0 and see if the problems still exist.