Connect to MySQL database from Java application

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
18,880
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 9, 2011

This video shows how to connect to MySQL database from Java application using JDBC driver.

  • likes, 6 dislikes

Link to this comment:

Share to:

Uploader Comments (mrityunjoy99)

  • Man, I hope you make more videos. You're awesome!

  • @TheAmazingJelly thanks for your support.

  • Excellent.......

  • @hellsing357 Thanks :)

  • Thanks Mrityunjoy! its a nice post.hy i want to know how many ways are there to connect database.

  • @smruti88 If you talk about Java then JDBC is the standard API to connect to different databases. Database vendors provide JDBC drivers for their databases. You have to choose a target database the suitable JDBC driver for it.

    In other programming languages the concept is mostly same.

see all

All Comments (30)

Sign In or Sign Up now to post a comment!
  • Many thanks mate! Mighty helpful...

  • @timvisee (I added some spaces between the URL's I used otherwise I couldn't post the comment -facepalm -facedesk

  • Hi, Great tutorial!

    .. but I have a question. I want to connect to an external database on my website, whats the URL I need to use where you used jdbc:mysql://localhost:3307/te­st, I tried those three things but I think they doesn't work. htt p: // example . com:3307 example . com :3307 and jbdc:mysql:// example . com. What do I need to use?

  • you are welcome

  • @InStars thank you very much.. I appreciate your comment. It worked fine with me.

  • @MegaOuja Thanks.. it worked fine. wish all best bro.

  • @russel07crowe You should create a new folder called "lib" in your Project and then add that .jar there, also add it to your CLASSPATH (search "classpath") in Window -> Preferences.

    Also I am not pro at this, but after some hours of searching internet I somehow managed to get it work.

  • Thanks dude, I forgot to add port at 4:20

    Adding the port solved my problems :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more