ziz
Member
Hello you All ;
I am new to Android programming ;
With my first attempt, I encountered a torrent of problems ;
I saw some topics in the forum, but they did not help ;
What have I missed ;
the error Msg :
Library Link Added :
Code For Connection .
The problem may be minor
It may have been addressed in the forum
Unfortunately, I did not find a cure
And Thank you who will waste some time to help
I am new to Android programming ;
With my first attempt, I encountered a torrent of problems ;
I saw some topics in the forum, but they did not help ;
What have I missed ;
the error Msg :
Library Link Added :
B4X:
#AdditionalJar: mysql-connector-java-5.1.22-bin
Code For Connection .
B4X:
'Code module
'Subs in this code module will be accessible from all modules.
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim NAMA_VAR_HANDLER As MysqlHandler
Dim NAMA_VAR_RESULT As ResultSet
End Sub
Sub conn
' NAMA_VAR_HANDLER.Initialize("nmServer","nmDatabase","nmUser","nmPassword")
'NAMA_VAR_HANDLER.Initialize("localhost","test","root","root")
NAMA_VAR_HANDLER.Initialize("com.mysql.jdbc.Driver", "jdbc:mysql:/127.0.0.1:3306/test","ali","JToX0lCmdHslAL1Q")
If NAMA_VAR_HANDLER.isConnected = False Then
Msgbox(NAMA_VAR_HANDLER.SQLError, "Error")
Return
End If
End Sub
The problem may be minor
It may have been addressed in the forum
Unfortunately, I did not find a cure
And Thank you who will waste some time to help