![]() ![]() I’ll right click, I’ll select copy then I’ll switch over to NetBeans, I’ll click the files tab and I’ll select my project and I’ll right click and I’ll say paste. Now we need to copy this file to the NetBeans project directory. Now I have this new directory with the artifacts and there’s a MySQL connector Java bin.jar, that’s the actual JDBC driver that we’ll use. I’ll double click it, this will expand it or extract it. Now let’s move over to our Finder window on our file system and find the actual file that we just downloaded and I want to uncompressed it because right now it’s a ZIP. On the next page right near the bottom, we’ll say no thanks, just start my download. ![]() We’ll choose the second entry here, the ZIP Archive and we’ll click the download button. On this page, we’ll choose the dropdown and we’ll select the platform independent. First thing we have to do is visit the MySQL website at. I will show you how to download the MySQL database driver and add it to your NetBeans project. Now I have a basic Java Class ready to go. For the name of the class I’ll enter demo and hit finish. I’ll select the project, I’ll right click, I’ll select New Java Class. Now what I’ll do is I’ll add a new Java Class. For the project name, I’ll give it jdbcdemo, I’ll click Finish. Make sure the Java application is selected and click next. I’ll go to the File menu, I’ll select new Project. Now I’ll create a simple NetBeans project. See that we have a table called Employees and then we’ll do a select star from that table and we’ll see that we have three employees currently in our database. Let’s look at our database and see what data we have. The first thing we’ll do is review the database tables, then we’ll download and add MySQL database driver to NetBeans, then we’ll actually create the Java code. In this video, you will learn how to connect to MySQL with Java and NetBeans. Please subscribe to this channel □ Download Java Source Code ![]() In this video you will learn how to connect to MySQL with Java and NetBeans. Last Updated on Tuesday, 10 February 2015 Written by Chad Darby Sunday, 31 August 2014 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |