Connect to MySQL database from Java application
Uploader Comments (mrityunjoy99)
All Comments (30)
-
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 :)
Man, I hope you make more videos. You're awesome!
TheAmazingJelly 1 month ago
@TheAmazingJelly thanks for your support.
mrityunjoy99 4 weeks ago
Excellent.......
hellsing357 8 months ago
@hellsing357 Thanks :)
mrityunjoy99 8 months ago
Thanks Mrityunjoy! its a nice post.hy i want to know how many ways are there to connect database.
smruti88 9 months ago
@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.
mrityunjoy99 8 months ago