Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: write code for databse connect to mysql

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default write code for databse connect to mysql

    please help me
    i want to know that how to connect mysql database form java
    Last edited by viral.bhat; March 18th, 2014 at 12:53 AM.


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: write code for databse connect to mysql


  3. #3
    Junior Member
    Join Date
    Mar 2014
    Location
    Denmark, Albertslund
    Posts
    15
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Re: write code for databse connect to mysql

    Class.forName("oracle.jdbc.driver.OracleDriver");

    More info about mysql database.

Similar Threads

  1. java netbean IDE 7.2 connect with mysql worcbench
    By nebried in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 14th, 2013, 02:35 AM
  2. How to connect or create database by using mysql to java
    By hafiz013 in forum Java Theory & Questions
    Replies: 4
    Last Post: January 3rd, 2013, 04:28 AM
  3. Connect to MySQL database on remote IP/port through JDBC
    By javauser in forum JDBC & Databases
    Replies: 6
    Last Post: September 7th, 2012, 02:11 AM
  4. connect to mysql database
    By aueddonline in forum JDBC & Databases
    Replies: 5
    Last Post: December 17th, 2011, 02:44 PM
  5. how to write code using servlets, jsp and mysql database
    By bvn456 in forum Java Theory & Questions
    Replies: 4
    Last Post: June 28th, 2011, 01:51 PM