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 5 of 5

Thread: How to connect or create database by using mysql to java

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to connect or create database by using mysql to java

    Hello guys, I really need help. Actually, I don't have basic knowledge about database serve but the things is I have to create ERD table database(mysql) into my project(courier national) which is customer when login can view his or her order,clerk may only add,edit,delete customer and manager same things like a clerk. During login, we have to check database either match with the user input such as password and username. I have already created GUI but I don't know how to connect with the database. Why we should need database serve instead of only database.

    I also attach my gui and what the first step must do?
    Attached Images Attached Images


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: How to connect or create database by using mysql to java

    What did google tell you? Have you read the following? Trail: JDBC(TM) Database Access (The Java™ Tutorials)
    ...and there is no need to attach your screenshots, as this is not a promotional arena

  3. #3
    Junior Member
    Join Date
    Nov 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to connect or create database by using mysql to java

    ok. Actually my attention is not to promote arena but to give the idea what I'm trying to say.. by the way, I try to read but the things is I still cannot understand ..

  4. #4

    Default Re: How to connect or create database by using mysql to java

    Hi hafiz013,

    you are newbie, try to follow this step by step tutorial: Connect to MySQL database via JDBC

  5. #5

    Default Re: How to connect or create database by using mysql to java

    To create database through Java's code, you must use executeUpdate(sql); and connect to the mysql database as root.

Similar Threads

  1. 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
  2. Java Connect to MySQL using jTextfield, jbuttons in NetBeans
    By Light Mike in forum JDBC & Databases
    Replies: 2
    Last Post: August 11th, 2012, 10:41 PM
  3. Replies: 1
    Last Post: June 29th, 2012, 01:29 PM
  4. connect to mysql database
    By aueddonline in forum JDBC & Databases
    Replies: 5
    Last Post: December 17th, 2011, 02:44 PM