I currently have a website with eukhost which uses php/mysql to gather appropriate information from users.
Separately I am running a tomcat web app back home.
I wish to interrogate the mysql DB from my Tomcat web app, but cant seem to make the connection. I have connected to mysql DBs locally, but connecting to my online website I get - Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL '92.48.108.230 (my server IP)'.
I am using the following attributes to make the connection
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="92.48.108.230" />
<property name="username" value="xxxxxxx" />
<property name="password" value="xxxxxxx" />
</bean>
If anyone can see any obvious answer please let me know!
Separately I am running a tomcat web app back home.
I wish to interrogate the mysql DB from my Tomcat web app, but cant seem to make the connection. I have connected to mysql DBs locally, but connecting to my online website I get - Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL '92.48.108.230 (my server IP)'.
I am using the following attributes to make the connection
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="92.48.108.230" />
<property name="username" value="xxxxxxx" />
<property name="password" value="xxxxxxx" />
</bean>
If anyone can see any obvious answer please let me know!
Comment