Hi
I haven't worked on MySQL for years and am having trouble connecting to a MySQL database on a Windows Server with B4J.
I have the following code
I am getting the following error
"com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server."
I've attached the complete log.
Also, the DB now has a password, does this also have to be in the Initialization string
Regards
I haven't worked on MySQL for years and am having trouble connecting to a MySQL database on a Windows Server with B4J.
I have the following code
B4X:
#AdditionalJar: mysql-connector-java-5.1.39-bin.jar
#End Region
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Dim Sql1 As SQL
End Sub
Sub AppStart (Form1 As Form, Args() As String)
Dim sqlCur As ResultSet
MainForm = Form1
MainForm.SetFormStyle("UNIFIED")
MainForm.RootPane.LoadLayout("Main")
MainForm.Show
Sql1.Initialize("com.mysql.jdbc.Driver", "jdbc:mysql://localhost /dividend_prices?characterEncoding=utf8")
I am getting the following error
"com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server."
I've attached the complete log.
Also, the DB now has a password, does this also have to be in the Initialization string
Regards