Try checking the sun documentation...java.sun.com
or the mysql documentation...
Ray Hunter
Balaji Ankem [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
What is the command to connect to mysql through java.
Thanks and Regards
Balaji
--
PHP
Sourceforge MySQL JDBC driver
http://mmmysql.sourceforge.net/
maybe this code frag will be helpful...
String connectionURL = jdbc:mysql://centauri.sbs:3306/dbname;
Connection conn = null;
Statement statement = null;
ResultSet rset = null;
try {
The last post is using the MySQL JDBC from a Java Server Page in a servlet
environment. I never tried to run this from Java imbedded in a PHP script.
You would have to remove the exception handling, at least.
I dispatch a Java Server Page from my php script (write to a socket), do
some java
3 matches
Mail list logo