connect java with mysql

Discussion in 'Java' started by frank, May 1, 2007.

  1. frank

    frank Guest

    hai friends ,
    anybody know how to connect the java program with MySql database?
    what is the name for tha driver?
     
    frank, May 1, 2007
    #1
    1. Advertising

  2. frank wrote:
    > anybody know how to connect the java program with MySql database?
    > what is the name for tha driver?


    Code snippet:

    Class.forName("com.mysql.jdbc.Driver");
    Connection con =
    DriverManager.getConnection("jdbc:mysql://localhost/Test", "", "");

    Arne
     
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=, May 1, 2007
    #2
    1. Advertising

  3. frank

    Snyke Guest

    Snyke, May 1, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Otis Mukinfus
    Replies:
    3
    Views:
    959
    Juan T. Llibre
    Jul 8, 2005
  2. Replies:
    3
    Views:
    40,665
    Roedy Green
    Nov 16, 2005
  3. Allen Marshall
    Replies:
    1
    Views:
    215
    Gunnar Hjalmarsson
    Jan 24, 2004
  4. Replies:
    2
    Views:
    327
  5. Mohsen Pahlevanzadeh

    Qt connect and first connect or unicode

    Mohsen Pahlevanzadeh, Sep 17, 2013, in forum: Python
    Replies:
    3
    Views:
    177
    Mohsen Pahlevanzadeh
    Sep 18, 2013
Loading...

Share This Page