QMYSQL with SSL on Android
-
Hi. I have a mobile application which connects to a MySQL server. I would like to have the connection encrypted, so I'm doing as the documentation says:
conn.setConnectOptions("CLIENT_SSL=1;CLIENT_IGNORE_SPACE=1");
The connections is established, but I can only perform one query. I always get a "Segmentation fault" error while performing a second query using the same connection. It works fine if I remove the SSL flag, and the same code also works fine on Windows, with or without SSL.
I'm using Qt 5.5.0 and libmysqlclient 6.1.5. At first I would say it's something related to the mysql client lib, but the fact that the same code works on Windows makes me wonder...
Has anyone already successfully used MySQL+SSL on Android? I'm not sure how to address this issue.
-
Hi,
Just a wild guess, do you have OpenSSL build for Android ?
-
Where did you get that libmysqlclient ?
-
It's been some time now. I don't remember exactly, but I think it was most likely from here:
ftp://linorg.usp.br/mysql/Downloads/Connector-C/mysql-connector-c-6.1.5-src.zip
It's one of the official mirrors.