Git Product home page Git Product logo

database-connection-via-jdbc-for-creation-insertion-and-retrieval's Introduction

Connection-to-database-via-JDBC-for-Creation-Insertion-and-Retrieval

This is a basic java program to perform the following operations

  1. Create a table
  2. Insert Records into the table.
  3. Retrieve data from the database

SETUP

  1. Download JDBC Driver for MySQL using the link given below
    https://dev.mysql.com/downloads/connector/j/
    select platform independent from the dropdown menu and download the tar file.
  2. Open XAMPP Control Panel and Turn on Apache and MySQL modules.
  3. Create a database in phpmyadmin.
  4. Create a new project in netbeans.
  5. Expand the projects folder and right click on libraries and select add JAR/Folder
  6. Select mysql-connector-java-8.0.12.jar and click open.
  7. Now, Open Windows > services.
  8. On the left window. Right click on databases and click on new connection.
  9. When the dialog box opens Click Add and select the mysql-connector-java-8.0.25.jar file . and select MySQL (Connector/J driver) from Driver drop-down and Click Next.
  10. In the Customize Connection window, replace the Database name with the name we want to give to the db.
  11. Click Test Connection.
  12. Store the Photos in a folder in your system. Change the location in the code as required. and create an empty folder to retrieve the student photo from database and change the location in the code as required.
  13. Replace the user, password and database name in the code according to phpMyadmin credentials. The default user -'root' and password - '' is used in this java code.
  14. Now, you may build and run the program.

database-connection-via-jdbc-for-creation-insertion-and-retrieval's People

Contributors

rishitareddychilla avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

osundiranay

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.