B4A Library MySQL Library

keirS

Well-Known Member
Licensed User
Longtime User
If you must access MySQL directly you could try my MySQL library. It's asynchronous so doesn't run on the main thread and so will work with higher API levels. If you are writing an app for release on the Play Store though you should follow Erel's advice as it doesn't support SSL or X.509 so is not secure.
 

leonardo pino

Member
Licensed User
Longtime User
Hi, I have a Problem, after instalation, com.mysql.jdbc.exceptions.jdbc4.MysqlNonTransientConnectionException:Could not create connection to database server, I use this code:
mh1.Initialize("www.page.com.co:3306","db_registro","db_user1","password")
Thanks,
 

DonManfred

Expert
Licensed User
Longtime User

keirS

Well-Known Member
Licensed User
Longtime User
Unless you want to pay Oracle a fee for a commercial licence you should avoid using any library that uses Connector/J the "official" MySQL JDBC driver because:

 

M.LAZ

Active Member
Licensed User
Longtime User
hi mosix,,,
could u add this charset parameter to ur connection string
mh1.Initialize("ip.mysql.server[ort]","db_name","db_user","db_password")
add new parameter:

mh1.Initialize("ip.mysql.server[ort]","db_name","db_user","db_password","UTF-8") to support multilingual charset ,,, UTF-8 or
utf8mb4_general_ci

Erel said that we must not use direct credetials data in our apps ,,, but my usage in my app is not an important data

this will help alot.. thank u so much....
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…