How to Connect to MySQL Database in NetBeans IDE

Поделиться
HTML-код
  • Опубликовано: 5 сен 2024
  • In this video I'd like to share with you how to connect to MySQL database in NetBeans IDE using Database Services tool, so you can work with and manage MySQL databases right inside NetBeans without having to use an external program like MySQL Workbench or MySQL Command Line Client.
    In details, you will learn:
    - Download MySQL JDBC driver
    - Make connection to a MySQL database
    - Create a new table
    - Update data in a table
    - Execute SQL statements
    And I suppose that you're using these software programs:
    - Java Development Kit (JDK)
    - Apache NetBeans IDE
    - MySQL Community server

Комментарии • 265

  • @Yahjoiasor
    @Yahjoiasor 3 года назад +25

    I really appreciate someone who share his knowledge to help other people. specially me who is in the process of learning. Thank you so much!

    • @CodeJava
      @CodeJava  3 года назад +1

      Glad it was helpful!

    • @toanmolsharma
      @toanmolsharma 3 года назад

      @@CodeJava send the link exactly in video

    • @CodeJava
      @CodeJava  3 года назад

      @@toanmolsharma what link do you mean?

    • @toanmolsharma
      @toanmolsharma 3 года назад

      @@CodeJava the java connector file in netbeams library class does not appear meanwhile i created backend data through phpmyadmin i want to connect databse to my java project

  • @devashishathawale4807
    @devashishathawale4807 2 года назад +2

    Thank you so much, our school textbooks don't help us much at all, this one video helped me solve the problem!

    • @CodeJava
      @CodeJava  2 года назад +1

      Glad it helped.

    • @CoollBoyz-dr5nv
      @CoollBoyz-dr5nv 2 года назад

      Bhai main ye pg main padh raha hun aur tu school main 🥲

  • @kwandokuhlemhlongo4676
    @kwandokuhlemhlongo4676 2 года назад +3

    Man, thank you for sharing this. If it weren't for this video, I would've failed my assignment. I appreciate you.

  • @Depogramming
    @Depogramming Год назад

    Thanks man , I have spent like 4 hours searching on how to connect database and netbeans ,
    you saved my GPA

  • @nathansuarez5543
    @nathansuarez5543 3 года назад +5

    when i click test connection on 4:56 i get this error (Cannot establish a connection to jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=CONVERT_TO_NULL using com.mysql.cj.jdbc.Driver (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.))

  • @tamnguyenthanh1694
    @tamnguyenthanh1694 2 года назад

    Thank you so much, I lose a night to research but no result but in your video I've resolved my problem

  • @nguyenhoan8532
    @nguyenhoan8532 3 года назад +5

    I had succeeded the first time I tried thism very helpful thank you. But a few days later when I try to do it again it showed this problem(Cannot establish a connection to jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=CONVERT_TO_NULL using com.mysql.cj.jdbc.Driver (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.) and I dont know how to fix it, please help :(

  • @pavithramarimuthu2616
    @pavithramarimuthu2616 2 года назад +2

    Thanks a lot . really helped me a lot. I was searching for videos and finally found ur clear video and clear guidance
    .

    • @CodeJava
      @CodeJava  2 года назад

      Glad it helped

    • @aryanshah1938
      @aryanshah1938 2 года назад

      It keeps on showing connection failed, how did you solve that. I tried everything

  • @mer0925
    @mer0925 3 года назад +2

    Thank you very much, now i can finish my project

  • @leandropoma9865
    @leandropoma9865 2 года назад

    Thanks!!!, Greetings from Bolivia

  • @ngophuocloc5030
    @ngophuocloc5030 2 года назад

    Thanks u =)) after 3 days finally i can connect MySQL with this video =))

    • @CodeJava
      @CodeJava  2 года назад

      Glad I could help!

    • @ola6495
      @ola6495 Год назад

      third week and i have not connect it yet

  • @divinaviolet3397
    @divinaviolet3397 2 года назад

    Thank u so much....after many videos finally this worked

  • @PoojaSingh-ig8ki
    @PoojaSingh-ig8ki 3 года назад +1

    you explained it very well....thank u

    • @CodeJava
      @CodeJava  3 года назад

      You are welcome :)

  • @RahulSingh-yz7jd
    @RahulSingh-yz7jd 2 года назад

    Thank you so much. I couldn't get my task done and you helped me soo much thank you again.

    • @CodeJava
      @CodeJava  2 года назад

      Glad I could help!

  • @sanjayanuwan42
    @sanjayanuwan42 2 года назад

    CEO of "here"

  • @luarcapancho
    @luarcapancho 3 года назад +2

    Thanks it was very helpfull

  • @antrung9908
    @antrung9908 3 года назад +6

    Thank you so much! This video is very good

    • @CodeJava
      @CodeJava  3 года назад +1

      You're so welcome!

  • @codedrian
    @codedrian 3 года назад +3

    I got this error Cannot establish a connection to jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=CONVERT_TO_NULL using com. What should I do?

  • @biancapxt
    @biancapxt 3 года назад

    THANK YOU!!!! I was looking for a solution for hours

    • @CodeJava
      @CodeJava  3 года назад

      You are welcome!

  • @simba4513
    @simba4513 3 года назад +2

    thank you so much!!! finally I solved it!

  • @jorgeescoto2382
    @jorgeescoto2382 2 года назад +1

    Great content

  • @nourelhouda5251
    @nourelhouda5251 2 года назад

    Thank you soo much !! i was looking for this for months !!!

    • @CodeJava
      @CodeJava  2 года назад +1

      Glad it helped!

  • @dejandjosic1258
    @dejandjosic1258 2 года назад

    Very helpful. Thank you

  • @parthshah7201
    @parthshah7201 3 года назад +1

    Thanks for this video

  • @DeepakKumar-rv9di
    @DeepakKumar-rv9di 2 года назад

    You saved me, Bro!! Thank you so much.

    • @CodeJava
      @CodeJava  2 года назад

      You are welcome!

  • @whatshouldido805
    @whatshouldido805 3 года назад

    IT WORKED!!!!!! Thank you so much.

  • @FlamingSteed
    @FlamingSteed 2 года назад +1

    Awesome

  • @moon_boss123
    @moon_boss123 3 года назад

    thanks a lot ...a now i can do my task's.....

  • @efromthestudio
    @efromthestudio 2 года назад

    this helped me a lot thank you!!

  • @who_thekaushik
    @who_thekaushik 2 года назад

    thanks a lot fot the help

  • @yudhanjeffri9433
    @yudhanjeffri9433 3 года назад

    thank you so much, you save my day

  • @nikeshchannel9730
    @nikeshchannel9730 3 года назад

    Thank you soo much Brother

  • @chin_dev7701
    @chin_dev7701 2 года назад

    thank you so much it is great

    • @CodeJava
      @CodeJava  2 года назад

      You're welcome 😊

  • @josephoduor2358
    @josephoduor2358 2 года назад

    Thank you for this.

  • @belahouelmohammedmehdi9687
    @belahouelmohammedmehdi9687 2 года назад +1

    I have a little problem when i test connection it dosent succed any ideas??

    • @CodeJava
      @CodeJava  2 года назад +1

      check JDBC URL, database username, password, port number, schema name... Make sure MySQL server is running.

  • @ozonewagle
    @ozonewagle 2 года назад +1

    Do i need to run xamp & mysql service in background for it to work?

    • @CodeJava
      @CodeJava  2 года назад +1

      yes, you do have MySQL service running in background, on localhost or on other machine.

    • @emito69
      @emito69 Год назад

      @@CodeJava and is there a way to make the connection using a SQL Service from netbeans? without the need of xampp or mysqlservice?

    • @CodeJava
      @CodeJava  Год назад +1

      @@emito69 no way. NetBeans is just an IDE.

    • @emito69
      @emito69 Год назад +1

      @@CodeJava thanks. i undestand now. i found that there are db servers like H2 that i can embbed in my aplication. i will keep learning. greats!

    • @CodeJava
      @CodeJava  Год назад +1

      @@emito69 that's right. check my video: ruclips.net/video/HsxUlODSvfM/видео.html

  • @monikashira4611
    @monikashira4611 3 года назад +1

    Sir after adding mysql connector it show same error in connection of driver what I can do

    • @CodeJava
      @CodeJava  3 года назад

      what is the error?

    • @monikashira4611
      @monikashira4611 3 года назад

      @@CodeJava com.mysql.jdbc.Driver
      This is the error sir

  • @frauschwer9197
    @frauschwer9197 3 года назад

    Thanks a lot bro

  • @picaohg7370
    @picaohg7370 3 года назад

    how i can pull the connection to an jframe archive to send the text field information? i do not know how to pull the connection or this way of service link is only for this purpouses?

    • @CodeJava
      @CodeJava  3 года назад

      then you need to write Java code. Check this video: ruclips.net/video/duEkh8ZsFGs/видео.html

  • @VIKASSHARMA-ic3dm
    @VIKASSHARMA-ic3dm Год назад

    thanks bro

  • @oasteadomnuluibucovina
    @oasteadomnuluibucovina 3 года назад

    the best

  • @soniasanmiguel7197
    @soniasanmiguel7197 3 года назад

    Excellent

    • @CodeJava
      @CodeJava  3 года назад

      Thank you so much 😀

  • @analys7622
    @analys7622 2 года назад +1

    Hay quá anh :awesome:

  • @Nscb1947
    @Nscb1947 3 года назад

    helped a lot thanks

  • @cameraman9906
    @cameraman9906 3 года назад

    Thank you dear

  • @benahmbugua5518
    @benahmbugua5518 2 года назад

    thanks alot

    • @CodeJava
      @CodeJava  2 года назад

      You are welcome 😁

  • @jessadelacruz2079
    @jessadelacruz2079 3 года назад

    So great!! Thanks!!

  • @barsaraneebarik4141
    @barsaraneebarik4141 Год назад

    If we connect database with service can we access it every frame and no code required for writing?

    • @CodeJava
      @CodeJava  Год назад

      No, you still need to write code in your Java project. Check this video: ruclips.net/video/duEkh8ZsFGs/видео.html

  • @anhtram4181
    @anhtram4181 3 года назад

    Thanks man. It's work!!!

  • @yiamkarkar5240
    @yiamkarkar5240 3 года назад +1

    Hi, I got an error "The server time zone value 'Malay Peninsula Standard Time' is unrecognized or represents more than one time zone. You must configure either..." when trying to connect the server, is there any solutions to solve this problem? I'm using the exactly same version of MySQL and Netbeans as yours

    • @CodeJava
      @CodeJava  3 года назад

      which version of your MySQL JDBC driver, 5.1. or 8.0? The latest one will not have time zone issue.

    • @yiamkarkar5240
      @yiamkarkar5240 3 года назад

      @@CodeJava I'm using MySQL JDBC driver version 8.0.22. By the way, I already got the solution to solve this problem. Thanks for your reply!

    • @blackiethecat8
      @blackiethecat8 3 года назад

      @@yiamkarkar5240 how did you solve this problem? i got this error too

    • @yiamkarkar5240
      @yiamkarkar5240 3 года назад

      @@blackiethecat8 by specifying the server time zone in the database url, for example: "jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=convert_To_Null&serverTimezone=UTC"

    • @picaohg7370
      @picaohg7370 3 года назад

      @@yiamkarkar5240 replace to ?useTimezone=true&serverTimezone=UTC this "?zeroDateTimeBehavior=convert_To_Null&serverTimezone=UTC""

  • @ayushenma
    @ayushenma Год назад

    it says my table does not exist after insert data 9:25

  • @priyanshusingh1075
    @priyanshusingh1075 2 года назад

    in which version u made this project is there any difference in new versions of netbeans and jdbc

    • @CodeJava
      @CodeJava  2 года назад

      I was using NetBeans 12.1 - there might be difference in the new version, but I think it would be similar.

  • @pmcrevenant1297
    @pmcrevenant1297 Год назад

    Strangely... I can't connect because mine kept saying "Connection Failed" what did I do wrong?!

    • @CodeJava
      @CodeJava  Год назад

      check JDBC url, username, password and make sure the MySQL server is up.

    • @pmcrevenant1297
      @pmcrevenant1297 Год назад

      @@CodeJava Where can I check this JDBC? And how can I check if my MySQL server is up? It doesn't even highlight the "Start Server".

  • @ishaanapte6570
    @ishaanapte6570 2 года назад

    but bow to add data into the database from java class
    since i am making GUI

    • @CodeJava
      @CodeJava  2 года назад

      follow this video: ruclips.net/video/1pA64-foiz8/видео.html

  • @toprakarat1018
    @toprakarat1018 3 года назад

    I use Microsoft SQL Server Managament and my authentication is Windows Authentication. So, what should i write on host name, port and Username? I dont have it.

    • @CodeJava
      @CodeJava  3 года назад

      with Windows authentication, you don't have to specify username and password. Just specify the JDBC URL like this:
      jdbc:sqlserver://localhost:1433;databaseName=testdb;integratedSecurity=true;

  • @totallyrandom9063
    @totallyrandom9063 3 года назад

    this message is showing when i tried to make a new connection? Cannot establish a connection to jdbc:mysql://localhost:3306/mysqltest?zeroDateTimeBehavior=CONVERT_TO_NUL

  • @shauntiey
    @shauntiey 11 месяцев назад

    My netbeans doesn't show the option to create a new connection?

    • @CodeJava
      @CodeJava  11 месяцев назад +1

      I don't know why. Perhaps your NB installation is corrupted. Try to remove and install again.

  • @ashinkunjumon3295
    @ashinkunjumon3295 3 года назад

    For me its showing invalid and not connecting to server

  • @codedrian
    @codedrian 3 года назад

    Hi. Is it okay that I don't add them in my System variable? I saw some tutorials that they add them in their system variable. Thank you.

    • @CodeJava
      @CodeJava  3 года назад

      add what to system variable?

  • @arafatlone1162
    @arafatlone1162 3 года назад

    I got an error for Cannot establish a connection to jdbc
    Do i need to have an SQL ?

    • @CodeJava
      @CodeJava  3 года назад +1

      Sure, you need to have MySQL server running locally on your computer or remotely on another computer.

  • @blasiusjohn7204
    @blasiusjohn7204 3 года назад

    Good man, tanx

  • @alexismontales7731
    @alexismontales7731 2 года назад

    thanks man!

    • @CodeJava
      @CodeJava  2 года назад +1

      Happy to help!

  • @pooranasundarpooranasundar9864
    @pooranasundarpooranasundar9864 2 года назад

    I tried to connect the Database, But it's showing Connection failed. Can you explain how to resolve this ?

    • @CodeJava
      @CodeJava  2 года назад

      That error means one of connection information is incorrect. So check JDBC URL, username, password. Also make sure MySQL server is running.

  • @PriyanshuYadav-bq8py
    @PriyanshuYadav-bq8py 2 года назад +1

    I think Ravi kumar is your indian friend 😂

    • @CodeJava
      @CodeJava  2 года назад

      haha, is it a common Indian name?

  • @payalwaradkar4497
    @payalwaradkar4497 2 года назад

    thanks

  • @anjalivalani69
    @anjalivalani69 10 месяцев назад

    Hey beo i am still getting error like connection failed😢

    • @CodeJava
      @CodeJava  10 месяцев назад

      check JDBC URL, username, password.... also make sure MySQL server is actually running.

  • @elestirensincap1481
    @elestirensincap1481 3 года назад

    Hello. For some reason, the Localhost section did not appear for me, what should I do? 3:32

    • @elestirensincap1481
      @elestirensincap1481 3 года назад +1

      Thanks, I just fixed the problem. I forgot to register :D

    • @CodeJava
      @CodeJava  3 года назад

      Glad to know that.

  • @millioner7391
    @millioner7391 2 года назад

    Connection failed: Access denied for user 'root'@'localhost' (using password: YES) (jdbc:mysql
    what to do

    • @CodeJava
      @CodeJava  2 года назад

      check username and password - either is incorrect.

  • @jamalelboujamai1927
    @jamalelboujamai1927 3 года назад +1

    tnx

    • @CodeJava
      @CodeJava  3 года назад

      you're welcome :)

  • @BroStartup
    @BroStartup Год назад

    i am getting an error when am following the same process Selected mysql-connector-j-8.0.31.jar might cause unexpected problems. Use preferred mysql-connector-java-8.0.17.jar.

    • @CodeJava
      @CodeJava  Год назад

      I think it's version compatibility or bug of the driver. Thanks for the tip.

    • @BroStartup
      @BroStartup Год назад

      @@CodeJava Thanks for the tip. But i can resolve the issue. the problem is different. Actually i working with xampp. Mysql is not started from there i am trying to change the name of user from root to diffrent so that''s way i am getting that error

  • @austinmumba1803
    @austinmumba1803 3 года назад

    Had you created the database already prior to connection?

    • @CodeJava
      @CodeJava  3 года назад

      Yes, suppose that you have some existing databases.

    • @austinmumba1803
      @austinmumba1803 3 года назад

      @@CodeJava Thanks man!

  • @frandychacon7505
    @frandychacon7505 3 года назад

    is it the same on Netbeans IDE 8.2? I can't see any database icon on mine

    • @CodeJava
      @CodeJava  3 года назад

      I don't know because I no longer use NB 8, which is too old. Upgrade to Apache NetBeans 12.

    • @riyapatil311
      @riyapatil311 3 года назад +1

      Maybe you'll see library then add library you will get options to add mysql

  • @ganeshmalo7736
    @ganeshmalo7736 2 года назад

    I can not connect mysql with netbeans ,Any password can i use?

    • @CodeJava
      @CodeJava  2 года назад

      it must be the password you set when installing MySQL.

  • @gustimuhammadaulianursulth7192
    @gustimuhammadaulianursulth7192 3 года назад

    how about when test connection errorr?

    • @CodeJava
      @CodeJava  3 года назад

      then check username, password, JDBC URL... also ensure MySQL server is running

  • @m1das_
    @m1das_ 3 года назад

    please, next time attach links in the description which you used in the video

    • @CodeJava
      @CodeJava  3 года назад

      ok, thanks for watching :)

  • @JohnMichaelRRoma
    @JohnMichaelRRoma 2 года назад

    what to do if connection failed :(

    • @CodeJava
      @CodeJava  2 года назад

      so check JDBC URL, username, password. And make sure MySQL server is running.

  • @vednande6192
    @vednande6192 2 года назад

    It is showing me this error.. please help Connection failed: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago.

    • @CodeJava
      @CodeJava  2 года назад

      make sure that mysql server is up and running.

    • @vednande6192
      @vednande6192 2 года назад +1

      @@CodeJava actually I again installed Java 17 now everything is right.. thanks a lot 🙏😊

  • @nongvunguyen1621
    @nongvunguyen1621 2 года назад

    what password of root can i fill out
    i have some problem with this

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

  • @rameshwarsuryawanshi8468
    @rameshwarsuryawanshi8468 3 года назад

    Sir I have problem to connecting to databases

    • @CodeJava
      @CodeJava  3 года назад +1

      do you know what the error ?

  • @yazhilanj4416
    @yazhilanj4416 3 года назад

    Sir it says cannot establish a connection

    • @CodeJava
      @CodeJava  3 года назад

      Check JDBC URL, username, password, port number... make sure everything is correct. Also checking MySQL instance is running. If connect remotely, check firewall.

  • @enriquezpastunafranklingeo5960
    @enriquezpastunafranklingeo5960 3 года назад

    hola tengo error al momento de realizar la prueba de coneccion ayúdame please

    • @CodeJava
      @CodeJava  3 года назад

      Ensure that url, username and password are correct. Also MySQL server instance is running.

  • @manhnguyen-kc2pi
    @manhnguyen-kc2pi 3 года назад

    a đang ở vn hay ở đâu vậy ạ

  • @hatran_fitness
    @hatran_fitness 3 года назад +1

    Are you Vietnamese?

  • @user-ok3wp1nv3m
    @user-ok3wp1nv3m 3 года назад

    how I can solve this problem?
    Cannot establish a connection to jdbc:mysql://localhost:3306/userdb using com.mysql.jdbc.Driver (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.)

  • @rajanemani
    @rajanemani 2 года назад

    COMPILATION ERROR :
    -------------------------------------------------------------
    hospital/editPatient.java:[53,72] error while writing : could not create parent directories
    1 error getting this error

    • @rajanemani
      @rajanemani 2 года назад

      can you plz help me ?

    • @CodeJava
      @CodeJava  2 года назад

      maybe your application doesn't have permission to write files (create parent directories).

  • @ThuyHoang-di4hs
    @ThuyHoang-di4hs 2 года назад

    anh oi nêu e cài mà nó k thành cong là lỗi do đâu vậy ạ

    • @CodeJava
      @CodeJava  2 года назад +1

      kiểm tra JDBC driver, JDBC URL, username và password.

    • @ThuyHoang-di4hs
      @ThuyHoang-di4hs 2 года назад

      @@CodeJava anh oi anh cho e xin inf đi ạ, em thử mãi không được anh ạ

  • @PRIYADHARSHINI-dl7vm
    @PRIYADHARSHINI-dl7vm 3 года назад

    I can't add the connector file

    • @CodeJava
      @CodeJava  3 года назад

      why? is there any error?

    • @PRIYADHARSHINI-dl7vm
      @PRIYADHARSHINI-dl7vm 3 года назад +1

      @@CodeJava noo its my error i didn't do it properly... now i got it thank you very much.... i even completed my project thank you thanks a lot

  • @lloyde3202
    @lloyde3202 2 года назад

    My connection failed

    • @CodeJava
      @CodeJava  2 года назад

      check url, username, password and make sure the server is running.

  • @alejandromattias7663
    @alejandromattias7663 3 года назад

    this solution does not work for me

    • @CodeJava
      @CodeJava  3 года назад

      what issue did you get?

  • @alevilghost
    @alevilghost 3 года назад

    Que genial, muchas gracias.

    • @CodeJava
      @CodeJava  3 года назад +1

      you're welcome.

  • @Lelouchvv
    @Lelouchvv 3 года назад +1

    giong giong VN ghe

    • @CodeJava
      @CodeJava  3 года назад +1

      yes, I'm from Vietnam

    • @duonghiep545
      @duonghiep545 2 года назад +1

      ghê cái j ông cũng biết

    • @Lelouchvv
      @Lelouchvv 2 года назад

      @@duonghiep545 :))))

  • @rahmamedhat910
    @rahmamedhat910 2 года назад

    Please, what is password, is this constant word?

    • @CodeJava
      @CodeJava  2 года назад +1

      No, it is the password you set when MySQL is installed.

  • @nisa5947
    @nisa5947 3 года назад

    how do I know the correct password?

    • @CodeJava
      @CodeJava  3 года назад +1

      You can't know once you forgot. The only way is to reset the root password. Reference: dev.mysql.com/doc/mysql-windows-excerpt/5.7/en/resetting-permissions-windows.html

  • @yoyo-ct3sh
    @yoyo-ct3sh 2 года назад

    audio not clear

    • @CodeJava
      @CodeJava  2 года назад

      Sorry to hear that.

  • @djemilasandza
    @djemilasandza 3 года назад

    Entered root password but shows error

    • @CodeJava
      @CodeJava  3 года назад

      what is the error? check carefully username, password, port number, ... and make sure that MySQL server is actually running.

    • @djemilasandza
      @djemilasandza 3 года назад

      The problem is it my own password that if have to put cause it doesn’t work. When I’m testing the connection it says that “Cannot establish a connection to jdbc...

  • @swathinunavth8646
    @swathinunavth8646 3 года назад

    Password is not working can you help with it

    • @CodeJava
      @CodeJava  3 года назад

      so you must use the correct password.

    • @nisa5947
      @nisa5947 3 года назад

      @@CodeJava how do I know the correct password?

  • @mouse6228
    @mouse6228 3 года назад

    I cannot establish a connection

    • @CodeJava
      @CodeJava  3 года назад

      what is the error message? Check host name, post number, username, password, database name...

    • @user-mt2wl
      @user-mt2wl 3 года назад +3

      @@CodeJava Cannot establish a connection to jdbc:mysql://localhost:3306/grosappareils?zeroDateTimeBehavior=CONVERT_TO_NULL using com.mysql.cj.jdbc.Driver (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.)

    • @annupandey841
      @annupandey841 3 года назад +1

      @@user-mt2wl how can i solve this error?

    • @user-mt2wl
      @user-mt2wl 3 года назад

      I resolude this problem juste to download the last version of apache netbeans

  • @zdani3
    @zdani3 9 месяцев назад

    szarabb gép nem volt kéznél?

  • @salmali9039
    @salmali9039 Год назад

    what's the solation of this problem ? Connection failed: 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. (jdbc:mysql://localhost:3306/newdb?zeroDateTimeBehavior=CONVERT_TO_NULL using com.mysql.cj.jdbc.Driver)

    • @CodeJava
      @CodeJava  Год назад

      MySQL server might be not running. Check for that.

    • @thanuja9912
      @thanuja9912 Год назад

      Is your error solved

  • @BroStartup
    @BroStartup Год назад

    Connection failed: 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. (jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=CONVERT_TO_NULL using com.mysql.cj.jdbc.Driver)