ios


System.ArgumentException: Keyword not supported “pwd”


I am developing a unity project which requires a MySQL connection.
My connection works fine in Unity and Android builds, but when I build the whole project into iOS platform, I had an error (I have localized this through a reporter plugin)
First an exception:
System.ArgumentException: Keyword not supported. Parameter name: pwd at MySql.Data.MSqlClient.MySqlConnectionStringBuilder.ValidateKeyword (System.String keyword) [0x000000] in <filename unknown>:0
Later an error:
NullReferenceException: A null value was found where an object instance was required.
HandlerMySQL.Conectar ()
The code is the following
using System.Collections.Generic;
using System.Security.Cryptography;
using MySql.Data;
using MySql.Data.MySqlClient;
public class HandlerMySQL{
public string host, database, user, password;
public bool pooling = true;
private string connectionString;
private static MySqlConnection con = null;
private MySqlCommand cmd = null;
private MySqlDataReader rdr = null;
private MD5 _md5Hash;
public HandlerMySQL(string h,string db, string u, string pw)
{
host = h;
database = db;
user = u;
password = pw;
}
public void Conectar()
{
connectionString = "Server=" + host + ";Database=" + database + ";Uid=" + user + ";Pwd=" + password + ";Pooling=";
if (pooling)
{
connectionString += "true;";
}
else
{
connectionString += "false;";
}
try
{
con = new MySqlConnection(connectionString);
con.Open();
Debug.Log("MySQL State: " + con.State);
}
catch(Exception e)
{
Debug.Log(e);
Debug.Log("MySQL State: " + con.State);
}
}
void OnApplicationQuit()
{
if (con != null)
{
if (con.State.ToString() != "Close")
{
con.Close();
Debug.Log("MySQL Connection closed");
}
con.Dispose();
}
}
public bool GetIsConnected()
{
if (con.State.ToString() == "Open")
{
return true;
}
else
{
return false;
}
}
public bool CreateData(string dnow, string dstart,int dend)
{
DataMySql data = new DataMySql(dnow, dstart, dend);
if (DataToolsMySql.Agregar(data, con) > 0)
{
Debug.Log("Se agrego correctamente");
return true;
}
else
{
Debug.Log("ERROR!!! No se agrego");
return false;
}
}
}

Related Links

iOS Universal link not working
Call a function of an another class (protocol)
Objective C ternary operator vs if statements nil check
Login error in iOS 9 Facebook SDK
How to map each Pixel to Vertex effectively with OpenGL ES on iOS?
how can i make a pop up menu in sprite kit swift? [closed]
Spritekit - Increase duration every 10 points
Allowing user to input nil values with Swift optionals
iOS Developer and Distribution certificate expiring while app in Test Flight
change color uipagecontroller
Magento API with iOS application and Oauth 1.0 Login
How to insure non logged inuser data submitted to parse.com only comes from mobile app
Passing 'self' issue in ios swift
Change style of table with Eureka Framework
AppDelegate declaration in a second view
Swift: Getting a Button to work

Categories

HOME
asp.net-mvc
copy
azure-search
jsonschema
gluu
xcode8
normalization
restsharp
asp.net-mvc-3
intl
windows-10-desktop
superfish
asciidoc
librsvg
cobol
w3.css
scope
yii2-advanced-app
accumulo
jgit
web-audio
durandal-2.0
amazon-cloudfront
google-distancematrix-api
eonasdan-datetimepicker
php-carbon
code-signing
ucwa
shinydashboard
true-type-fonts
codeceptjs
webcenter
argparse
msal
apartment-gem
bezier
uitabbarcontroller
mamp-pro
permgen
sweet.js
ase
adal.js
abbyy
typesetting
jvm-arguments
liclipse
wxhaskell
xpdf
webdeploy-3.5
duration
benerator
uiswitch
pddl
cucumber-java
administrator
multiple-files
illegalstateexception
egl
dbfit
database-tuning-advisor
monkeyrunner
node-orm2
simperium
java-client
information-schema
boxapiv2
brooklyn
aps
nine-patch
magento-1.6
asciiencoding
sshj
parsekit
vlfeat
emitmapper
mips64
emacs-jedi
polarssl
uptime
neventstore
hiphop
51degrees
ariatemplates
ribbon-control
ccr
obout
ladon
ramaze
mate
retain
jquery-pagination
treetop
adbwireless
program-transformation
sloc
contracts
help-authoring
roguelike

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App