How to Connect to MySQL Database in Eclipse IDE

  Рет қаралды 164,558

Code Java

Code Java

Күн бұрын

Пікірлер: 108
@bytegraftkids
@bytegraftkids 3 жыл бұрын
Thank you for taking out your time and patiently explaining everything in detail.
@CodeJava
@CodeJava 3 жыл бұрын
Glad it was helpful!
@vinayvini2628
@vinayvini2628 3 жыл бұрын
I am not finding that database development in an open-perspective path
@CodeJava
@CodeJava 3 жыл бұрын
so you need to install database development tools via menu Help > Eclipse marketplace
@namjoonsbrokewife159
@namjoonsbrokewife159 3 жыл бұрын
Hi! after I added JPA, my schema folder is not opening in the Data Source Explorer. please help me
@aryajha4428
@aryajha4428 3 жыл бұрын
I am not getting database development option in open perspective Any tips please?
@CodeJava
@CodeJava 3 жыл бұрын
kindly follow this video: kzbin.info/www/bejne/nKmaXpV7opWdipI
@vijaykumar-wu9jc
@vijaykumar-wu9jc 4 жыл бұрын
Thank u for this video , from long time am using eclipse I was not knowing , now I learned this
@CodeJava
@CodeJava 4 жыл бұрын
You are most welcome. I also know it recently.
@All_In_One_Go_2002
@All_In_One_Go_2002 2 жыл бұрын
which password should we use @ 6:00 min. While giving test connection I am getting as ping failed. Please say what will the error, why I am getting as ping failed.
@CodeJava
@CodeJava 2 жыл бұрын
that error means MySQL server is not running. So make sure it is running first.
@cityisbetter
@cityisbetter Жыл бұрын
5:49 it shows ''ping failed'' for me, pls help
@CodeJava
@CodeJava Жыл бұрын
check MySQL server, make sure it is running and listening on the port you expect. Also check username and password, which maybe incorrect.
@cityisbetter
@cityisbetter Жыл бұрын
@@CodeJava thanks for the reply, i only had MySQL workbench open, later on realized i need to have MySQL server open
@solitaryrocky1541
@solitaryrocky1541 3 жыл бұрын
In the JAR list, it doesn't let me add JAR/zip. Do I need to have JDBC drivers in the Name/Type tab?
@CodeJava
@CodeJava 3 жыл бұрын
yes, you should see some JDBC drivers in that tab.
@TrangPham-u5i
@TrangPham-u5i Жыл бұрын
Thank you for your sharing. Your video is very helpful. I have successfully set up the connection in my Eclipse.
@CodeJava
@CodeJava Жыл бұрын
Glad it helped
@lexigeib
@lexigeib 3 жыл бұрын
Hello, when you click on the page to specify the driver and you click on the mySQL JDBC Driver I don not have any versions being displayed. I went into prefrences and looked there too but the only drivers that are available are for ubuntu and linux. Is there more software I need to download in order to access the JDBC drivers?. I cannot add the jar file until I click on a version but there are no versions to click. Thank you.
@CodeJava
@CodeJava 3 жыл бұрын
No more software needed. If you don't see any MySQL JDBC version, you can create a new generic JDBC driver and specify the database properties as shown in the video.
@dvhuzg
@dvhuzg 3 жыл бұрын
i'm using Eclipse IDE for Java Developer and it doesn't have Database Connection, so must I download the Eclipse Enterprise to use this function?
@CodeJava
@CodeJava 3 жыл бұрын
Yes, or you can install a plugin. Follow this video: kzbin.info/www/bejne/nKmaXpV7opWdipI
@shradhakamble9647
@shradhakamble9647 3 жыл бұрын
Sir in my mysql open perspective no database development file there Pls reply sir🙏🏻
@CodeJava
@CodeJava 3 жыл бұрын
kindly follow this video: kzbin.info/www/bejne/nKmaXpV7opWdipI
@KCReddy24
@KCReddy24 4 жыл бұрын
How come the database have tables ...was it created by you ? please explain
@CodeJava
@CodeJava 4 жыл бұрын
yes, that's right. Suppose that we have an existing database before.
@shammimunnisa1385
@shammimunnisa1385 3 жыл бұрын
Test connection throwing error: Ping failed,java.net.ConnectException MESSAGE: Connection refused: connect
@wastedtv3853
@wastedtv3853 2 жыл бұрын
when i go to the open perspective portion i dont have any option for database development. what other option can i use to do this?
@CodeJava
@CodeJava 2 жыл бұрын
check this video: kzbin.info/www/bejne/nKmaXpV7opWdipI
@amb7247
@amb7247 3 жыл бұрын
Is the ping failed due to Mysql not running on a server. Our user is trying to connect to it over VPN. Assuming we can cmd prompt ping the same server's hostname. Wasn't sure about other factors such as Db name, user/pass or port #. I never used the eclipse ide so I'm flying blind in support for the user.
@CodeJava
@CodeJava 3 жыл бұрын
I think it would be firewall, network config issues in your case.
@naumanarshad1146
@naumanarshad1146 2 жыл бұрын
@@CodeJava how to solve it sir?
@bercinn-g
@bercinn-g 2 жыл бұрын
hi, thanks for this informative video but ı have an issue when ı try to make a conncection profile ı cannot see database development option in the open perspective part. How can ı fix it?
@CodeJava
@CodeJava 2 жыл бұрын
you need to install it. Follow this video: kzbin.info/www/bejne/nKmaXpV7opWdipI
@drfrost938
@drfrost938 3 жыл бұрын
i have mysql version6.3 can i still connect it? with this connector?
@CodeJava
@CodeJava 3 жыл бұрын
it depends on the version of JDBC driver. Check compatibility on MySQL website.
@drfrost938
@drfrost938 3 жыл бұрын
@@CodeJava im using mysql workbench 6.3 ce i hope its compatible
@drfrost938
@drfrost938 3 жыл бұрын
anyway thank you for the video its good!
@CharanMuktha
@CharanMuktha Жыл бұрын
But connection is empty sir in new ->data resource
@jaisuriyar5259
@jaisuriyar5259 3 жыл бұрын
5:48 it shows "ping failed" while testing.
@CodeJava
@CodeJava 3 жыл бұрын
Is the MySQL server running? Check JDBC URL (host, port, schema). Check username & password. One of this information is incorrect.
@jaisuriyar5259
@jaisuriyar5259 3 жыл бұрын
@@CodeJava 👍
@binduniharika343
@binduniharika343 3 жыл бұрын
Ping failed while testing
@DineshGgoogle
@DineshGgoogle 2 жыл бұрын
Nice to see the name Rani Kumar Krishna :)
@CodeJava
@CodeJava 2 жыл бұрын
it's a nice name, right?
@edwinperera9133
@edwinperera9133 Жыл бұрын
my option for database management in perspective is not showing
@CodeJava
@CodeJava Жыл бұрын
you need to install DB tools first. Follow this video: kzbin.info/www/bejne/nKmaXpV7opWdipI
@favioar
@favioar 2 жыл бұрын
Thank you very very much !!! Great video, you helped me a lot!! 👏👏👏
@CodeJava
@CodeJava 2 жыл бұрын
Glad it helped!
@alternativerey5127
@alternativerey5127 3 жыл бұрын
hey bro now i feel in love whit your knowledge
@CodeJava
@CodeJava 3 жыл бұрын
So nice of you. Thanks for watching :)
@muralikrishna1408
@muralikrishna1408 2 жыл бұрын
After specifying the driver connection details, in the test connection process Iam getting the ping failed .what to do?
@CodeJava
@CodeJava 2 жыл бұрын
Check if MySQL server is running or not.
@niktacgaming6493
@niktacgaming6493 2 жыл бұрын
How to check mysql is running??
@CodeJava
@CodeJava 2 жыл бұрын
@@niktacgaming6493 if you're on Windows, open Task Manager, go to Services, look for MySQL
@cardenaskristoffercharlesb7170
@cardenaskristoffercharlesb7170 2 жыл бұрын
Hi, thank you for uploading this. It is very helpful, but I have an issue whenever I try to test the connection, the ping always failed. How can i fix it? thank you
@CodeJava
@CodeJava 2 жыл бұрын
is MySQL server actually running? Also check typos in JDBC URL, username, password...
@hnq145
@hnq145 Жыл бұрын
Sao nhiều người dùng MySQL để kết nối với Java mà ko dùng Microsoft SQL Sever vậy ạ??? Mong a giải thích
@CodeJava
@CodeJava Жыл бұрын
đơn giản vì MySQL là mã nguồn mở, nhẹ, nhanh nên phổ biến hơn SQL Server, vốn chủ yếu dùng trong doanh nghiệp.
@farzanabegum708
@farzanabegum708 2 жыл бұрын
Thank you for your time. I have a question what is the difference if I connect database by using Query as Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/mydb","root","Password");
@CodeJava
@CodeJava 2 жыл бұрын
the syntax may differ, yet the purpose is the same.
@farzanabegum708
@farzanabegum708 2 жыл бұрын
@@CodeJava Thank you, Sir
@User45823
@User45823 2 жыл бұрын
What is the password required for the root username? Is it my system password or do I need to separately set a new password for mysql? Everytime I'm giving my system password , it is showing error in connection. Please help🙏
@CodeJava
@CodeJava 2 жыл бұрын
the root password is the one you set when installing MySQL server. If you don't remember, you can reset it.
@User45823
@User45823 2 жыл бұрын
@@CodeJava i had installed eclipse ide initially then for connecting to mysql i installed the sql connector only...do i need to install anything else apart from it? i don't have any other installations related to sql in my system...
@CodeJava
@CodeJava 2 жыл бұрын
@@User45823 oh, you need to have MySQL server installed on your computer. Or do you have a remote one to connect to?
@User45823
@User45823 2 жыл бұрын
@@CodeJavano no I don't have any remote one to connect...then I need to install mysql server...thank you for helping 😊 will come back for help if I face further problems😅
@chetansingh3284
@chetansingh3284 2 жыл бұрын
Sir database development show hi nhi ho raha h
@CodeJava
@CodeJava 2 жыл бұрын
kindly follow this video: kzbin.info/www/bejne/nKmaXpV7opWdipI
@surfeurdestemps3193
@surfeurdestemps3193 4 жыл бұрын
Hi , how to connect to h2:mem database from eclipse? 😁
@CodeJava
@CodeJava 4 жыл бұрын
I think it's not possible because H2 memory database runs in the same process of the application, whereas Eclipse database tool runs in another process.
@surfeurdestemps3193
@surfeurdestemps3193 4 жыл бұрын
@@CodeJava may be like this it's possible : eclipse.github.io/kura/builtin/h2-database.html
@shivangisahgal3399
@shivangisahgal3399 4 жыл бұрын
No database development option is coming while opening open perspective
@CodeJava
@CodeJava 4 жыл бұрын
perhaps your Eclipse version is not for Java EE developers. You can install database development from eclipse marketplace (Help > Eclipse marketplace)
@jackmaxwell3134
@jackmaxwell3134 3 жыл бұрын
@@CodeJava no it's not. You need to follow @Shaun Pusey's comment here.
@anumaamir3441
@anumaamir3441 3 жыл бұрын
What is the next step? how are we going to write the queries and java code?
@CodeJava
@CodeJava 3 жыл бұрын
kindly follow this video: kzbin.info/www/bejne/mqaonJtuj9h5fdU and this one: kzbin.info/www/bejne/Z6GkZ2djm9ScsJo
@tuaninhang2741
@tuaninhang2741 2 жыл бұрын
I've tried for many times but it was always Ping Failed, could anyone give me a reason why??
@CodeJava
@CodeJava 2 жыл бұрын
is MySQL running?
@tuaninhang2741
@tuaninhang2741 2 жыл бұрын
@@CodeJava oh yes, thank you. I've fixed my problem. your video is so great. thank you so much
@melodi4564
@melodi4564 2 жыл бұрын
what if i forget my mysql password
@CodeJava
@CodeJava 2 жыл бұрын
then you have to reset your root password. reference: stackoverflow.com/questions/16556497/mysql-how-to-reset-or-change-the-mysql-root-password
@jimrogers4346
@jimrogers4346 Жыл бұрын
good tank you my teacher
@CodeJava
@CodeJava Жыл бұрын
You are welcome
@mesleykuvedrieh4679
@mesleykuvedrieh4679 3 жыл бұрын
I having a problem (ping fail)
@CodeJava
@CodeJava 3 жыл бұрын
Something wrong with JDBC URL (port, user, pass.. incorrect). Or the server is not running.
@merikhurshudyan7085
@merikhurshudyan7085 3 жыл бұрын
my ping fails why is that?
@CodeJava
@CodeJava 3 жыл бұрын
ensure that MySQL server is running.
@ktn4
@ktn4 4 жыл бұрын
I didn't know that I can use Eclipse like MySQL workbench in this way :O
@CodeJava
@CodeJava 4 жыл бұрын
yeah, that's the power of an IDE (integrated development environment).
@biswabikashparida9691
@biswabikashparida9691 2 жыл бұрын
My ping is getting failed please help
@CodeJava
@CodeJava 2 жыл бұрын
Make sure MySQL server is running. Also check JDBC URL, username and password.
@XFAWKES94X
@XFAWKES94X 2 жыл бұрын
Zlatan? ..
@CodeJava
@CodeJava 2 жыл бұрын
what do you mean?
@keerthanalokeshkumar2877
@keerthanalokeshkumar2877 2 жыл бұрын
Thanks for this video.
@CodeJava
@CodeJava 2 жыл бұрын
You are welcome.
@jyotirmaydas5938
@jyotirmaydas5938 3 жыл бұрын
what is the password given
@CodeJava
@CodeJava 3 жыл бұрын
it's the password you set when installing MySQL.
@yusufmustari
@yusufmustari 2 жыл бұрын
Thanks dude
@CodeJava
@CodeJava 2 жыл бұрын
Happy to help
@sultanahmadsabawoon6030
@sultanahmadsabawoon6030 2 жыл бұрын
Yeah, Yea! :)
@biswajyotidas6236
@biswajyotidas6236 3 жыл бұрын
Thank u my man
@CodeJava
@CodeJava 3 жыл бұрын
Happy to help
Java Connect to MySQL Database Step by Step
43:26
Code Java
Рет қаралды 149 М.
How to use Tomcat server in Eclipse IDE
34:18
Code Java
Рет қаралды 14 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
SQL Tutorial 14: JDBC | Java Database Connectivity with MySQL
29:55
MySQL Node.js Express
28:03
Sam Meech-Ward
Рет қаралды 207 М.
16.2 Java Database Connectivity Practical
20:22
Telusko
Рет қаралды 889 М.
Java Connect to Microsoft SQL Server Step by Step
35:41
Code Java
Рет қаралды 170 М.
I loaded 100,000,000 rows into MySQL (fast)
18:27
PlanetScale
Рет қаралды 180 М.
16.1  JDBC | Java Database Connectivity Theory Tutorial
21:19
Telusko
Рет қаралды 1,2 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН