[Mono-list] Mono Yocto MySql trifecta question

Kirk Rowe johnfable at gmail.com
Mon Aug 22 17:49:52 UTC 2016


This is my first mailing list message, ever, so I apologize if I’m not
doing this correctly.


I am working on a Yocto embedded board from Digi, using openembedded,
meta-mono, and meta-digi.


Included in this is MariaDB 5.5.48, which we're using as our database for
on the board. We are also using Mono to create a small form for very basic
user interaction, and for managing data.


However, when I run this C#/Mono program, I attempt to connect using a
MySqlConnection object (from MySql.Data.dll/MySql.Data.MySqlClient), I
cannot for the life of my figure out how to connect to the database. I have
tried identical code on Ubuntu, and it works fine, but whenever I put in a
connection string of "server=localhost;database=myData;Uid=root;Pwd=;", I
always get the error: "Unable to connection to any of the specified MySql
Hosts."


I am currently at a loss of what to do after hours and hours of research,
which is why I'm doing this for the first time.


Thank you to anyone who replies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-list/attachments/20160822/7f0a1069/attachment.html>


More information about the Mono-list mailing list