- Home /
Mysql database does not work after build
mysql database works well in editor but when i build it it leaves me this error :
ArgumentException : Keyword not supported Parameter name : Port
here is the connection string
string connectionString = @"SERVER='127.0.0.1';PORT='3306';UID='root';PASSWORD ='*';DATABASE = 'unitybase';";
when i remove the port from connection string it gives the same error but the parameter name becomes UID
Please Help!
Thanks in advance
Answer by stephenadozier · Dec 10, 2020 at 12:37 AM
I've been searching for the same problem and I found a comment about that accuses the missing bench of l18 files.Link: http://answers.unity3d.com/questions/42955/codepage-1252-not-supported-works-in-editor-but-no.html?_ga=2.214328215.1246189411.1607559654-1952190656.1606091060 but it doesn't work for me, however it may work for u. if anyone have a solution for me, I would be very grateful.
Answer by sacredgeometry · Dec 10, 2020 at 04:34 AM
That doesnt look like a valid mysql connection string
Which should look like
Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
Try string connectionString = "SERVER=127.0.0.1:3306;UID=root;PASSWORD=YourPassword;DATABASE=YourDatabaseName;
instead
Reference
Your answer
Follow this Question
Related Questions
Storing Player Sessions 0 Answers
Unity5 to connect mySQL data base using C# - I need help 2 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to use MySQL.Data dll in Unity 0 Answers