Missing Namespaces

Hi there,
I was trying to establish a connection to a Mysql Server using this code, and as far as i know, i need this:

using System;
using System.Data;
using MySql.Data.MySqlClient;    
[...]

Here comes the problem: when I finished the script (just connecting to the DB) and I went to the Unity editor, i got this errors:

Assets/Standard Assets/Scripts/SQL/Connection.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?

-------------------

Assets/Standard Assets/Scripts/SQL/Connection.cs(2,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference?

I’ve been looking the whole day for a solution on the internet and the Unity forums, but I can’t solve this problem.
I’ve read something about some dlls in this folder:

/Applications/Unity/Unity.app/Contents/Frameworks/...

But I can´t locate it on my PC, and I’m sure that would fix the problem.

Help is appreciated.

Thank you very much for your time

OK, it’s solved…

Go to edit>project settings>player and set API to .NET 2.0 instead of .NET 2.0Subset

Make sure you go to Edit → Project Settings → Editor and in the WWW Security Emulation put the URL to your server (IP address or link that you use to access the server).