Finally got something working...(After setting the application to 2.0 in monodev it found the missing db class) after another reinstall of mono. System.Transactions could not be found even though it was in it's designated directory. So I tried adding it with gacutil -i System.Transactions.dll. with root permissions. It couldn't find it. Unsurprising b/c it removed it. This explains some problems I've had with other libraries as well now.
(It still is frustrating b/c it should have been found).
After a reinstall of mono it was back but despite adding the right references the problem remained. After copying it to the application directory it works. I'm now fighting the connection string which I've copied and modified from
http://www.mono-project.com/MySQL . It says it cannot connect to the (sepcified hosts) database even though I can telnet to mySql and login with the query browser.
Once I can connect I'll look into being able to have datasets returned instead of using IDataReader, which they use in the example.
Thank you for your help.
oh, and my connection code:
Code:
string strCon = "Server=127.0.0.1;" + "Database=tria;" + "User ID=xxxx;" + "Pooling=false";
IDbConnection conn = new MySqlConnection(strCon);
IDbCommand cmd = conn.CreateCommand();
conn.Open();
(Indeed, no password is used)
(Pooling gives us thread errors)
throws error:
Code:
Unhandled Exception: MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.Exception: Exception of type System.Exception was thrown.
at MySql.Data.MySqlClient.NativeDriver.Open () [0x00000] --- End of inner exception stack trace ---
at MySql.Data.MySqlClient.NativeDriver.Open () [0x00000]
at MySql.Data.MySqlClient.Driver.Create (MySql.Data.MySqlClient.MySqlConnectionStringBuilder settings) [0x00000]
at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000]