[Mono-list] MySql 1.1.7 problem also under 1.1.8

Kevin Flanagan kevin.flanagan at bom.co.uk
Mon Jun 20 10:55:35 EDT 2005


I posted a problem recently using MySql with Mono 1.1.7 (which is fine under
Mono 1.1.4). For info, same problem exists under Mono 1.1.8. If anyone gets
a chance to reproduce it (details below) who knows MySql and Mono and might
be able to suggest a workaround, I'd be very grateful ... Thanks in advance
for any help.

Kevin Flanagan.

<Original post>
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 a
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 1.1.7
produces the error: "Unable to connect to any of the specified MySQL hosts".
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.

<follow up>
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>
		[STAThread]
		static void Main(string[] args)
		{
			//
			// TODO: Add code to start application here
			//

			MySqlConnection conn;
			conn = new MySqlConnection();

			conn.ConnectionString = "server=localhost;user
ID=root;password=test;database=test;pooling=false";
			conn.Open();

			Console.WriteLine(conn.ServerVersion);
			Console.ReadLine();

		}
	}
}




More information about the Mono-list mailing list