I am attempting to connect to a MySQL database.
The MySQL database name "ebuki".
I receive the following error:
My Code:
The MySQL database name "ebuki".
I receive the following error:
B4X:
Waiting for debugger to connect...
Program started.
An error occurred:
(Line: 16) sql1.Initialize("com.mysql.jdbc.Driver", "jdbc:my
java.lang.NumberFormatException: For input string: "jdbc:mysql://localhost/ebuki?"
My Code:
B4X:
'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#AdditionalJar: mysql-connector-java-5.1.40-bin.jar
#End Region
Sub Process_Globals
Public srvr As Server
Private sql1 As SQL
End Sub
Sub AppStart (Args() As String)
' sql1.Initialize("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/ebuki?characterEncoding=utf8")
sql1.Initialize("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/ebuki?" + "user=root&password=Ecowatch!@#$%")
srvr.Initialize("")
srvr.Port = 32009
srvr.AddWebSocket("/ws", "B4A")
srvr.Start
StartMessageLoop
End Sub