- Home /
Question by
Senkh · Sep 19, 2018 at 12:08 AM ·
iosdatabaseamazondatabase handling
Aws problems when deploying to IOS: MySql.Data.MySqlClient.MySqlException: Unable to create plugin for authentication method 'mysql_native_password'. Argument cannot be null.Parameter name: type
So, I have a IOS game that for very specific reasons needs to connect do AWS RDS.
Everything works great in Dev, but when deploying it seems to have some problems with the connection string? I am not sure, I found some similar errors on the web, but nothing really matched. Looking at the error, it seems to be looking for a "type" parameter in the connection, but that's not really there to be found.
It sounds like a really dumb error, but so far the only think I could think of was playing with the connection string, since I isolated the error right to when it tries to connect. Funny thing the error doesn't happen on Android, but that doesn't help me much.
So my Unity Version is 2018.2.8, mysql-connector-net-8.0.12, and the error is:
MySql.Data.MySqlClient.MySqlException: Unable to create plugin for authentication method 'mysql_native_password'.
Please see inner exception for details. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: type
at System.Activator.CheckType (System.Type type) [0x00000] in <filename unknown>:0
at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0
at MySql.Data.MySqlClient.Authentication.AuthenticationPluginManager.CreatePlugin (System.String method) [0x00000]
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612174858im_/https://answers.unity.com/themes/thub/images/avi.jpg)