Hello,
so I need to connect and doing some sql interrogation to my MySQL server.
I follow this tutorial for to configure RDC, but when I try to access (with http://127.0.0.1:17178/?method=test) the server I get this error:
I copied to the jdbc_driver folder, a jar file named: "com.mysql.jdbc_5.1.5"
And this is the config.properties file:
Please, how can solve? I need to install "Connect/j"?
How can I connect directly to my database?
Is RDC necessary in my application? If yes, how can I import it?
so I need to connect and doing some sql interrogation to my MySQL server.
I follow this tutorial for to configure RDC, but when I try to access (with http://127.0.0.1:17178/?method=test) the server I get this error:
B4X:
RemoteServer is running (Thu Apr 02 21:54:47 CEST 2015)
java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
I copied to the jdbc_driver folder, a jar file named: "com.mysql.jdbc_5.1.5"
And this is the config.properties file:
B4X:
#Lines starting with '#' are comments.
#Backslash character at the end of line means that the command continues in the next line.
DriverClass=com.mysql.jdbc.Driver
JdbcUrl=jdbc:mysql://localhost/test?characterEncoding=utf8
User=db_user
Password=my_password
ServerPort=17178
#If Debug is true then this file will be reloaded on every query.
#This is useful if you need to modify the queries.
Debug=true
#commands
sql.create_table=CREATE TABLE animals (\
id INT NOT NULL AUTO_INCREMENT,\
name CHAR(30) NOT NULL,\
image BLOB,\
PRIMARY KEY (id))
sql.insert_animal=INSERT INTO animals VALUES (null, ?,?)
sql.select_animal=SELECT name, image FROM animals WHERE name = ?
Please, how can solve? I need to install "Connect/j"?
How can I connect directly to my database?
Is RDC necessary in my application? If yes, how can I import it?
Last edited: