Bug #61237 | Unable to connect to any of the specified hosts (on Mac only) | ||
---|---|---|---|
Submitted: | 20 May 2011 3:01 | Modified: | 16 Jun 2011 4:34 |
Reporter: | Christopher Thielen | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / NET | Severity: | S1 (Critical) |
Version: | Multiple, incl 6.3.6 and 6.4bzr | OS: | MacOS |
Assigned to: | Bogdan Degtyariov | CPU Architecture: | Any |
[20 May 2011 3:01]
Christopher Thielen
[20 May 2011 15:29]
Valeriy Kravchuk
Maybe you should not use Protocol=socket in connection string if you connect via TCP/IP and port 3306?
[20 May 2011 20:16]
Christopher Thielen
Heh, that bit of the connection string shouldn't be there - it's from my earlier tests trying to get this to work _somehow_. I took that out and still experience the same error, same backtrace, same empty InnerException.
[20 May 2011 20:20]
Christopher Thielen
FYI, this is mysql-5.5.12-osx10.6-x86_64, with a copy of my sample program and the test assembly (compiled from bzr yesterday) is here: http://epiar.net/MySQLConnectionTest.tar.bz2 . Again, that code/assembly works on Linux with a localhost MySQL as well.
[20 May 2011 20:58]
Christopher Thielen
(Apologies for the fragmented comments) This error also occurs after it spends a good 4-5 seconds attempting to connect (on the db.open() line).
[24 May 2011 6:25]
Christopher Thielen
Is there anything I can do to help with this bug? Additional logs perhaps?
[24 May 2011 9:25]
Bogdan Degtyariov
Hi Christopher, This looks like the problem in MONO rather than Connector/NET because the same DLL file worked fine in Linux. Please confirm that you used the NET & MONO Download package. Copying MySql.Data.Dll from Windows installation would be not correct because Connector/NET has few conditional preprocessor directives #if MONO/#if !MONO.
[24 May 2011 17:17]
Christopher Thielen
Makes sense. Yes, I can confirm it works in Linux and that I used the correct download for Mono. I also built it off bzr with MonoDevelop and experienced the same results. I'll file a bug on their side. Thanks!
[16 Jun 2011 4:34]
Bogdan Degtyariov
Closed with "not a bug" status. The bug is in Mono.