Gianni M Well-Known Member Licensed User Longtime User Aug 31, 2020 #1 hello; B4X: SQL.InitializeAsync("MySQL", "com.mysql.jdbc.Driver", $"jdbc:mysql://${DBLocation}/register_Northwind_MySQL?useSSL=false"$, DBUsername, DBPassword) 'or SQL.Initialize2("com.mysql.jdbc.Driver", "jdbc:mysql://" & ip & "/database","username","password") can someone explain difference ? what is best solution?
hello; B4X: SQL.InitializeAsync("MySQL", "com.mysql.jdbc.Driver", $"jdbc:mysql://${DBLocation}/register_Northwind_MySQL?useSSL=false"$, DBUsername, DBPassword) 'or SQL.Initialize2("com.mysql.jdbc.Driver", "jdbc:mysql://" & ip & "/database","username","password") can someone explain difference ? what is best solution?
Erel B4X founder Staff member Licensed User Longtime User Aug 31, 2020 #2 If this is a UI app then you should use InitializeAsync with Wait For SQL_Ready (Success As Booolean) Otherwise the app will freeze until the connection is ready. This can take a long time. Upvote 0
If this is a UI app then you should use InitializeAsync with Wait For SQL_Ready (Success As Booolean) Otherwise the app will freeze until the connection is ready. This can take a long time.