[Mono-list] Mono 1.1.7 and MySql, "Unable to connect ..."

Kevin Flanagan kevin.flanagan at bom.co.uk
Wed Jun 15 18:06:57 EDT 2005

Yes - no problem. Below is the simple csharp test I'm now using (which is ok
under 1.1.4 but not 1.1.7):

using System;
using MySql.Data;
using MySql.Data.MySqlClient;

namespace test
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	class Class1
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		static void Main(string[] args)
			// TODO: Add code to start application here

			MySqlConnection conn;
			conn = new MySqlConnection();

			conn.ConnectionString = "server=localhost;user



-----Mensaje original-----
De: Martin Hinks [mailto:mhinks at gmail.com]
Enviado el: 15 June 2005 22:47
Para: Kevin Flanagan
CC: mono-list at lists.ximian.com
Asunto: Re: [Mono-list] Mono 1.1.7 and MySql, "Unable to connect ..."

Can you post a test case to illustrate the problem so that we can see
exactly how the error is caused please?

This will allow more effective help...

It does sound like a problem with Mono - but the code sample will help
identify the cause...


On 6/15/05, Kevin Flanagan <kevin.flanagan at bom.co.uk> wrote:
> Environment: Windows XP, MySql 4.1, MySql Connecter/NET 1.0.4, Mono 1.1.4
> and 1.1.7
> I recently upgraded a machine from Mono 1.1.4 to 1.1.7 and immediately had
> problem with MySql connections. Now I've put both versions on that machine
> and have a two-line test program that does nothing more than connect to a
> local MySql database. The test program runs fine under 1.1.4 but under
> produces the error: "Unable to connect to any of the specified MySQL
> Since the only difference between the two is the version of Mono, I'm
> guessing it must be a Mono problem, but I've not been able to find any
> information on it (though there is a thread which looks similar here:
> http://forums.mysql.com/read.php?38,27316,27316#msg-27316 ). Has anyone
> encountered this problem or found any resolution to it? Thanks in advance
> for any info.
> Kevin Flanagan.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

Martin Hinks

More information about the Mono-list mailing list