On Tue, 7 May 2002, George Pitcher wrote:
Date: Tue, 7 May 2002 06:15:28 +0100
From: George Pitcher [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: JDBC connection to MySQL
Just a guess, but how about an ampersand?
Connection c =
DriverManager.getConnection
Hello,
I've been struggling with this for two weeks, I can't seem to find the answer
wherever I look whether in the core mysql book or the documentation on what
variables, if any go between parameters(user and password) as in:
Connection c =
Just a guess, but how about an ampersand?
Connection c =
DriverManager.getConnection(jdbc:mysql://localhost/dbName?user=usernamepas
sword=password);
George
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 07, 2002 5:11 AM
Subject: JDBC connection
this is my code:
import java.sql.*;
import java.util.*;
public class Connected {
public static void main (String[] args) throws Exception{
Connection con = null;
try{
String url = jdbc:mysql://localhost:3306/mydatabase;