Jorge Santamaria Magana
Member
Could someone guide me to know if jdbc technology allows remote connections to the database?
When variables are configured locally it works great, but when configured for remote access from a host it returns false
Any suggestions?
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
'====variables de conexion
Public vSERVER As String ="fdb1028.awardspace.net"
Public mysql As JdbcSQL
Private driver As String = "com.mysql.jdbc.Driver"
Private jdbcUrl As String = "jdbc:mysql://"&vSERVER &"/4306936_aulanet"
Private Username As String = "4306936_aulanet"
Private Password As String = "passworddb"
'====fin
End Sub
When variables are configured locally it works great, but when configured for remote access from a host it returns false
B4X:
Sub Connect As ResumableSub
'mysql.IsInitialized=true
mysql.InitializeAsync("mysql", driver, jdbcUrl, Username, Password)
Wait For MySQL_Ready (Success As Boolean)
If Success = False Then
Log("Check unfiltered logs for JDBC errors.")
End If
Return Success
End Sub
Any suggestions?