Re: How do i connect my Java Program to a remote MYSQL

2002-06-14 Thread Mark Matthews
Arul wrote: >Hi All > >How do i connect to mysql on a remote machine.. >Is there any client tools available > >Regards, >-Arul > >sql,query > > >- >Before posting, please check: > http://www.mysql.com/manual.php (the manual)

Re: How do i connect my Java Program to a remote MYSQL

2002-06-14 Thread Calin Pop
If you use "org.gjt.mm.mysql.Driver" of Mark Mathews and you have a TCP/IP based network: connection = DriverManager.getConnection("jdbc:mysql:///?user= &password="); can be: - ("localhost" or IP adress 127.0.0.1) for local machine; - a remote host identifier for a remote machine( ex name o

Re: How do i connect my Java Program to a remote MYSQL

2002-06-13 Thread sherzodr
<%@ page import="java.sql.*" %> Connection connection = null; Class.forName("org.gjt.mm.mysql.Driver").newInstance(); connection = DriverManager.getConnection( "jdbc:mysql://localhost/sherzodr_cdbaza?user=sherzodr_cdbaza&password