i want to build up a application run in android and ios.
the mysql database is put on amazon RDS service.
i use Mysql.data.dll to connect database.
in android, the application can connect the Mysql database .
but in IPhone, the connect is fail…
this is code.
public static void OpenSql()
{
// MySqlConnectionStringBuilder asd = new MySqlConnectionStringBuilder();
try
{
string connectionString = string.Format("Server = {0};port={4};Database = {1}; User ID = {2}; Password = {3};",host,database,id,pwd,"3306");
dbConnection = new MySqlConnection(connectionString);
dbConnection.Open();
}catch (Exception e)
{
throw new Exception("error:" + e.Message.ToString());
}
}
How can i do …
please help me…