jRDC2 which is the recommended method requires shell access. JdbcSQL requires the database to allow external connection. If external connections are not enabled then you cannot connect to the database.
#DATABASE CONFIGURATION
DriverClass=com.mysql.jdbc.Driver
JdbcUrl=jdbc:mysql://(IP ADDRESS OF MY HOSTING)/starlan1_sms?characterEncoding=utf8
User=databaseusername
Password=databasepassword
#Java server port
ServerPort=2083 (im using 2083 because it is remote)
It depends on the host. Maybe your host is online, but just let connect to the database from a web page inside the same host, not allow it from another webpage or external service.
Most hosts (especially shared hosts) do not allow directc connection from outside to MySQL DB. Some will allow you to specify certain IP's to allow connection.
The only real work around i know of is to create an API in PHP.
Install your own php-scripts will do the trick. You can communicate with your php-scripts using okhttputils2. Search the forum; there are some Tutorials.
A direct db-connection is most probably not possible with your Provider (as the most providers prevent this)..
The best solution (#4) is jrdc2 (but you need a Server (not hosting) or VPS to be able to run it).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.