Hello! Unity returns an error in my script in lines
"
using MySql;
using MySql.Data;
using MySql.Data.MySqlClient;
"
Error: 12:00:25] Assets\Scripts\DatabaseConnect.cs(5,7): error CS0246: The type or namespace name ‘MySqд’ could not be found (are you missing a using directive or an assembly reference?)
Can someone help me please?
Sorry, not “MySqд” in error, it is “MySql”
Did you copy various dlls into your project? Or just try using mysql as a name space?
1 Like
There is no built-in MySql in Unity so you need to follow setup instructions for using MySql library in Unity. As mentioned by bugfinders this involves copying specific DLLs into the project. If you use AssemblyDefinition you also need to reference them in the asmdef.
1 Like