Re: Remotely Access DB from JDBC to Mysql
Posted by: Todd Farmer
Date: August 31, 2015 07:58AM

Hi Amit,

It's not immediately clear to me what you are trying to do. The JDBC driver doesn't speak HTTP; it exists to communicate using the MySQL client/server protocol between the MySQL Server and a Java application. Your browser isn't a Java application - though you might run Java applets inside it. Pointing your browser at the MySQL Server port:

1. Sends an HTTP request from the browser to the MySQL Server, which does not understand it.
2. Never loads the JDBC driver (it's not a Java program).

If you don't have a Java program, a requirement to use JDBC isn't very meaningful. The error message you get suggests that the network connectivity to the MySQL Server exists (error generated by MySQL Server). So the remaining problem is simply hooking up the JDBC driver with your Java application.

Hope that helps!

--
Todd Farmer
MySQL @ Oracle
http://www.oracle.com/mysql/

Options: ReplyQuote


Subject
Written By
Posted
Re: Remotely Access DB from JDBC to Mysql
August 31, 2015 07:58AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.