Header Ads

How to connect to mysql database with netbeans

Hello readers!

This is my first blog post in this blogger site, today I am going to tell you about a problem i face in when I am programming with Java. so these days I am working on a POS system, this pos system is always deals with MySQL database which is hosted in my local server testing purposes, anyway the problem  I face is simple, every when I write the code to connect to the MySQL database it won't work, I know exactly that write the code correctly but its still not working, even I have a screenshot which was taken when i written a code correctly, I exactly copy the same code to the my project but it wont work, anyway i am trying for hours and hours at some point it will starts to work and I am happy that anyhow I fix it.


the reason I told you this boring story is to make you aware that its OK to be fail, you just try and try and at some point you will become success. so I hope that if you are joining the tech field you must have the ability to accept failure and do not give up and try for the best.

anyway below is a ss of my code which i use to connect to database and get values from it, hope it will be useful for you.






that's  it guys, if this  blog post is  boring i am so sorry, anyway hope you all enjoyed. thumbs up :)



No comments:

Powered by Blogger.