Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Unity 3D (MonoDevelop) and MySQL

  • 18-03-2015 08:08PM
    #1
    Registered Users, Registered Users 2 Posts: 22


    I'm having massive trouble with getting Monodevelop using c# to connect directly to a database.

    I keep adding the connector (V4.5) "MySql.Data.dll" into the references of the project but every time i restart the engine the library goes missing.

    When i add the library and type in "using MySql." into developer it's shows me the ".data" in its auto complete but the error "Assets/Scripts/Mysqltests.cs(3,7): error CS0246: The type or namespace name `MySql' could not be found. Are you missing a using directive or an assembly reference?" in the console.

    I'm using unity 4 on windows 8.

    I've installed this connector as well: dev.mysql.com/downloads/connector/net/.


Comments

  • Registered Users, Registered Users 2 Posts: 3,831 ✭✭✭Torakx


    This is something I have wanted to do for a while but never looked into it properly.
    All i can offer is to make sure it isn't related to the name space at the top of scripts.
    using systems.collections.generic etc etc
    I know I have to add some when using lists in C# for Unity.


Advertisement