Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Connection problem with C# and MySQL DB

Discussion in 'Scripting' started by aladin87, Mar 24, 2012.

  1. aladin87

    aladin87

    Joined:
    Mar 23, 2012
    Posts:
    1
    Hi Everyone,

    I work these days on how to connect my MySQL database with C # in Unity 3D. I found a document in a topic posted on the Unity forum as a tutorial for connecting to the database, I have suffered the steps perfectly but when the I build the code program gives me an error, it is here below:

    Code (csharp):
    1. The type 'System.ComponentModel.Component' is Defined in Year That Is not referenced assembly. You must add a reference to assembly 'System, Version = 2.0.5.0, Culture = neutral, PublicKeyToken = 7cec85d7bea7798e'.

    It seems that the problem is caused by the object instance "MySqlCommand" but I can not correct the error knowing I am a C# amateur.

    You Find here the tutorial in the doc attachment and sorry for my english :rolleyes:
     

    Attached Files:

  2. chriselviss

    chriselviss

    Joined:
    Mar 4, 2015
    Posts:
    1