How to Connect to MySQL Database in Eclipse IDE

Поділитися
Вставка
  • Опубліковано 13 гру 2024

КОМЕНТАРІ • 108

  • @bytegraftkids
    @bytegraftkids 3 роки тому +4

    Thank you for taking out your time and patiently explaining everything in detail.

    • @CodeJava
      @CodeJava  3 роки тому +1

      Glad it was helpful!

  • @vijaykumar-wu9jc
    @vijaykumar-wu9jc 4 роки тому +3

    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.

  • @TrangPham-u5i
    @TrangPham-u5i Рік тому

    Thank you for your sharing. Your video is very helpful. I have successfully set up the connection in my Eclipse.

  • @vinayvini2628
    @vinayvini2628 3 роки тому +7

    I am not finding that database development in an open-perspective path

    • @CodeJava
      @CodeJava  3 роки тому +4

      so you need to install database development tools via menu Help > Eclipse marketplace

  • @namjoonsbrokewife159
    @namjoonsbrokewife159 3 роки тому +2

    Hi! after I added JPA, my schema folder is not opening in the Data Source Explorer. please help me

  • @DineshGgoogle
    @DineshGgoogle 2 роки тому +1

    Nice to see the name Rani Kumar Krishna :)

    • @CodeJava
      @CodeJava  2 роки тому +1

      it's a nice name, right?

  • @alternativerey5127
    @alternativerey5127 3 роки тому

    hey bro now i feel in love whit your knowledge

    • @CodeJava
      @CodeJava  3 роки тому

      So nice of you. Thanks for watching :)

  • @lexigeib
    @lexigeib 3 роки тому +1

    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.

  • @aryajha4428
    @aryajha4428 3 роки тому +3

    I am not getting database development option in open perspective
    Any tips please?

    • @CodeJava
      @CodeJava  3 роки тому +1

      kindly follow this video: ua-cam.com/video/fx7-bEm0jT0/v-deo.html

  • @solitaryrocky1541
    @solitaryrocky1541 3 роки тому +1

    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.

  • @dvhuzg
    @dvhuzg 3 роки тому +1

    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: ua-cam.com/video/fx7-bEm0jT0/v-deo.html

  • @favioar
    @favioar 2 роки тому

    Thank you very very much !!! Great video, you helped me a lot!! 👏👏👏

  • @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.

  • @shradhakamble9647
    @shradhakamble9647 3 роки тому +2

    Sir in my mysql open perspective no database development file there
    Pls reply sir🙏🏻

    • @CodeJava
      @CodeJava  3 роки тому

      kindly follow this video: ua-cam.com/video/fx7-bEm0jT0/v-deo.html

  • @shammimunnisa1385
    @shammimunnisa1385 3 роки тому +1

    Test connection throwing error: Ping failed,java.net.ConnectException
    MESSAGE: Connection refused: connect

  • @KCReddy24
    @KCReddy24 4 роки тому +1

    How come the database have tables ...was it created by you ?
    please explain

    • @CodeJava
      @CodeJava  4 роки тому +2

      yes, that's right. Suppose that we have an existing database before.

  • @cityisbetter
    @cityisbetter Рік тому +1

    5:49 it shows ''ping failed'' for me, pls help

    • @CodeJava
      @CodeJava  Рік тому +1

      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

  • @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 роки тому +1

      @@CodeJava im using mysql workbench 6.3 ce i hope its compatible

    • @drfrost938
      @drfrost938 3 роки тому +1

      anyway thank you for the video its good!

  • @jimrogers4346
    @jimrogers4346 Рік тому

    good tank you my teacher

  • @CharanMuktha
    @CharanMuktha Рік тому +1

    But connection is empty sir in new ->data resource

  • @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: ua-cam.com/video/fx7-bEm0jT0/v-deo.html

  • @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: ua-cam.com/video/fx7-bEm0jT0/v-deo.html

  • @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?

  • @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...

  • @edwinperera9133
    @edwinperera9133 Рік тому

    my option for database management in perspective is not showing

    • @CodeJava
      @CodeJava  Рік тому

      you need to install DB tools first. Follow this video: ua-cam.com/video/fx7-bEm0jT0/v-deo.html

  • @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  Рік тому +1

      đơ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.

  • @chetansingh3284
    @chetansingh3284 2 роки тому +1

    Sir database development show hi nhi ho raha h

    • @CodeJava
      @CodeJava  2 роки тому

      kindly follow this video: ua-cam.com/video/fx7-bEm0jT0/v-deo.html

  • @keerthanalokeshkumar2877
    @keerthanalokeshkumar2877 2 роки тому

    Thanks for this video.

  • @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

  • @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

  • @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: ua-cam.com/video/duEkh8ZsFGs/v-deo.html
      and this one: ua-cam.com/video/1pA64-foiz8/v-deo.html

  • @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

  • @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 роки тому +1

      @@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😅

  • @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).

  • @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 роки тому +1

      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

  • @yusufmustari
    @yusufmustari 2 роки тому

    Thanks dude

  • @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 роки тому +1

      the syntax may differ, yet the purpose is the same.

    • @farzanabegum708
      @farzanabegum708 2 роки тому

      @@CodeJava Thank you, Sir

  • @biswajyotidas6236
    @biswajyotidas6236 3 роки тому

    Thank u my man

  • @sultanahmadsabawoon6030
    @sultanahmadsabawoon6030 2 роки тому +1

    Yeah, Yea! :)

  • @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

  • @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.

  • @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.

  • @jyotirmaydas5938
    @jyotirmaydas5938 3 роки тому

    what is the password given

    • @CodeJava
      @CodeJava  3 роки тому

      it's the password you set when installing MySQL.

  • @XFAWKES94X
    @XFAWKES94X 2 роки тому +1

    Zlatan? ..