im trying to make an asynchronous connection to a MySQL database to avoid my application from freezing up. I was wondering:
- is this possible?-
- what does the constructor string look like? so far mine is:
Server=...;Database=...;User ID=...;Password=...;Pooling=True- Do i need to add something enabling asynchronous processing? ("Asynchronous Processing=true" doesnt work)
have you ever done this? ANY help is appreciated. thanks so much!!!
for reference, this is basically what im trying to accomplish (C#):
cmd = new MySqlCommand(query, con);
IAsyncResult iSynch;
iSynch= cmd.BeginExecuteReader();
while(!iSynch.IsCompleted){
print("loading loading loading");
}
rdr = cmd.EndExecuteReader(iSynch);