-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Luong Phan wrote:

> Hi all,
>
> In my web application, I use mysql supported by Redhat Linux 7.3 to
store database, jakarta-tomcat-3.2.4,
> mysql-connector-java-3.0.6-stable-bin.jar, and JSP.
>
> Every time, I run the program:
>
> import java.io.IOException;
> import java.sql.Connection;
> import java.sql.DriverManager;
> import java.sql.ResultSet;
> import java.sql.SQLException;
> import java.sql.Statement;
>
> public class Data {
>  private Connection connection;
>  private Statement statement;
>
>
>  public Data() throws ClassNotFoundException,SQLException{
>
>   String DBDriver=null;
>   String url=null;
>   String username=null;
>   String password=null;
>
>         password="myPassword";
>         username="myUserName";
>         url="dbc:mysql://localhost/gmds";
>         DBDriver="com.mysql.jdbc.Driver";
[snip]

The URL should be "jdbc:mysql://localhost/gmds" not
"dbc:mysql://localhost/gmds"

        -Mark


- --
Mr. Mark Matthews
MySQL AB, Software Development Manager, J2EE and Windows Platforms
Office: +1 708 557 2388
www.mysql.com

Are you MySQL Certified?
http://www.mysql.com/certification/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/RhfvtvXNTca6JD8RAmcfAJ9IB2s6rrNFueEcfxiOeEAjgnwamQCdEirS
IXo9bOsvItB287r57LL06xA=
=ign4
-----END PGP SIGNATURE-----


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to