RE: The Syntax to Get JDBC Connection

2001-05-21 Thread Siomara Pantarotto
 void setDriverType(String newDriverType) {
this.driverType = newDriverType;
  }
  public String getDriverType() {
return driverType;
  }

  
/
  // Set and get HOST attribute
  //
  public void setHost(String newHost) {
this.host = newHost;
  }
  public String getHost() {
return host;
  }

  
/
  // Set and get PORT attribute
  //
  public void setPort(String newPort) {
this.port = newPort;
  }
  public String getPort() {
return port;
  }

  
/
  // Set and get SID attribute
  //
  public void setSid(String newSid) {
this.sid = newSid;
  }
  public String getSid() {
return sid;
  }

  
/
  // Set and get USERNAME attribute
  //
  public void setUsername(String newUsername) {
this.username = newUsername;
  }
  public String getUsername() {
return username;
  }

  
/
  // Set and get PASSWORD attribute
  //
  public void setPassword(String newPassword) {
this.password = newPassword;
  }
  public String getPassword() {
return password;
  }
}

***

From: Cal Evans [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: The Syntax to Get JDBC Connection
Date: Sun, 20 May 2001 20:09:43 -0500

If that's an exact quote then you left off the opening quote marks.

Cal
http://www.calevans.com


-Original Message-
From: Li Bing [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 19, 2001 4:14 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: The Syntax to Get JDBC Connection


Dear All,

I use mm.mysql.jdbc to access mysql in Java. To get the connection, the
following sentence is writen in my program. But an error occurred.
I guess that the syntax is wrong. Could you please give me the correct
one.

Connection conn =
DriverManager.getConnection(jdbc:mysql://localhost/RegistrationDB?user=libin
g;password=123456);

My requirements are as follows,

I need to create a database, RegistrationDB, after getting connected
with MySql. The username is libing and password iis 123456.

Thanks!
Li Bing


-
Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



-
Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail 
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: The Syntax to Get JDBC Connection

2001-05-20 Thread Cal Evans

If that's an exact quote then you left off the opening quote marks.

Cal
http://www.calevans.com


-Original Message-
From: Li Bing [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 19, 2001 4:14 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: The Syntax to Get JDBC Connection


Dear All,

I use mm.mysql.jdbc to access mysql in Java. To get the connection, the
following sentence is writen in my program. But an error occurred.
I guess that the syntax is wrong. Could you please give me the correct
one.

Connection conn =
DriverManager.getConnection(jdbc:mysql://localhost/RegistrationDB?user=libin
g;password=123456);

My requirements are as follows,

I need to create a database, RegistrationDB, after getting connected
with MySql. The username is libing and password iis 123456.

Thanks!
Li Bing


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php