Java JDBC Tutorial 1 : Connect Java Application with MySQL Database

preview_player
Показать описание
In this video, I have shown how to connect your java program or application with the mysql database installed on your local system in ubuntu linux using terminal.

At first , I have shown how to install jdk in ubuntu linux and then to install the mysql database on your system

To install the Java JDK Java Development Kit :
sudo apt-get install openjdk-8-jdk

To install mysql :
sudo apt-get install mysql-server mysql-client libmysql-java

To compile Java Applicaiton :

To run the Byte Code :

You can also download Other DBMS Connectors at their respective official websites.
Рекомендации по теме
Комментарии
Автор

I have watch so many videos!!! I LOVE YOU!!! It took me 10 days to do this assignment for school!!! Thank you for being useful. Really..

adanajosna
Автор

this video really helped me a lot, ,,and thanku so much, ,,

zedalex
Автор

this was very useful to me so thank you

wiemfourati
Автор

Thanks man! I didn't know that we have use : instead of ; on mac. :D

maikchido
Автор

Dude i don't know who you are but i LOVE YOU WITH ALL MY SLAVIC HEART!

kolobroadgh
Автор

I have written the program in eclipse. How can run the program? I having trouble with connector jar file

arabiclive
Автор

When I typed: java -cp FirstApp
I got
Error: Access denied for user 'root'@'localhost'

dinarabolatbek
Автор

Hello....I am unable to connect getting this error
Access denied for user 'sky'@'localhost'

akashdey
Автор

Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.


How to resolve this?

vjvj
Автор

Unable to locate package libmysql-java.
Why this happend

liyamargrat
Автор

my programe is compiled after compile there are one warnning is:"WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Access denied for user 'root'@'localhost'".plz tell me solution

ammaryaasir
Автор

In mysql downloads there is no zip file instead there is a deb file.

vinaykumaravishetti
Автор

there was nothing about creating a password for the server. how to set one?

paulsingh
Автор

hello sir when i was trying to run "sudo apt-get install -y python-pip libmysqlclient-dev"
it returns me "Unable to correct problems, you have held broken packages." why it was happens

gokulramakrishnan
Автор

is the same code applicable for windows 7....

jinsasamuel
Автор

i get an E: unable to locate package libmysql-java, anyone else not finding that package?

jamiemeadowcroft
Автор

how can connect java application with oracle sql database in ubuntu 20.4 using terminal.

DharmendraKrGupta-tslj
Автор

Gracias bro, pude conectar javaJDK version17 y MariaDB 10.6.7 en dispositivo Android en termux, con ese controlador, por si a alguien le interesa xD

elinformaticofuturista
Автор

sir .... at 6:09 min the progarm emacs not found

now sir .... what i have to do

desicomedyking
Автор

But sir replace emacs by subline but error is come... Subline will work here or not ..?

desicomedyking
join shbcf.ru