Java- MySQL Connection (Create Table, Insert, Select)

preview_player
Показать описание
This is a fast tutorial, intended for people who understand java, and the basics of SQL/MySQL who just want to see how to use my-sql-connector.
How to create a MySQL Connection in java, then create a table, insert, and select, video 1 of 4.
CODE:

public static Connection getConnection() throws Exception{
try{
String url = "jdbc:mysql://24.196.52.166:3306/testdb";
String username = "username";
String password = "password";

return conn;


return null;
}

Рекомендации по теме
Комментарии
Автор

i like that he records this at 2am, he is a legend.

akwardlecturesyou
Автор

Mad respect for being so straight to the point and not wasting our time in the slightest. Also going over every little step to make sure the tutorial is foolproof.
11/10

Aryzon
Автор

great explanation, also nice how you recorded it at 2am like a true programmer

Verulyrus
Автор

This video has taken away any misconceptions I had about database programming thanks

amar
Автор

I had to come back to your video for the setup for the mysql-connector-java jar file. I was watching another tutorial series and they didn't do it correctly which resulted in database connection exceptions. Thank you for doing what you do.

solace
Автор

this video was very clear in a short time, really good

sirivalli
Автор

Thanks a lot!!!! Man this is first time my connection was established after only watching your video😭 really thanks a

samibhadgaokar
Автор

Thank you a lot! Best tutorial i have watched so far.

prasiprassi
Автор

I like it, you know I am from India 👍

vaibhavbhinge
Автор

Thnx a lot i was struggling a lot to establish this connection 🖒

bharatarora
Автор

Thanks bro, just did this with localhost

techlos
Автор

thank you very much, you saved my day

baolongkhuu
Автор

hi .great video. thank you. can you make a video of select and insert records using DataSource

bharatvarma
Автор

When you see bandicam you know the video is going to be fire

klekaelly
Автор

Oh, you reply very fast. I've seen your video about my sql and deleted my cmt immediately. I use sql server 14 and when I use connector type for sql server 12 it does not work. Now, I'm using my sql and it's ok. Thank you

ify
Автор

i m executing same code
i m gettting this error.

a JNI error has occured please check installation
and
a java exception has occured

sandeepsah
Автор

Damn your still replying to comments after 7 years legend

shadowwhacc
Автор

I liked that old version of MS. But due to security reason we dont use it anymore. But new MS is not as good as old one in performance.

someone
Автор

gonna go ahead then go ahead and after that go ahead?

mcgeoughseph
welcome to shbcf.ru