This Java project is responsible for performing CRUD operations on a MySQL database for the 'live' table. It allows the following operations:
- View existing data.
- Insert new records.
- Update existing records.
- Delete records based on their ID.
- Java Development Kit (JDK)
- MySQL database
- Ensure you have a database named 'life' on your MySQL server.
- Verify that the 'live' table is created with the columns: 'id_live', 'name_npc', 'money'.
- Clone this repository to your local machine.
- Configure the connection to your database in the
ConnectionDB
class. - Run the
Main.java
file to start the application.
Main.java
: Controls user interaction and menu options.el10.java
: Handles CRUD operations on the 'live' table.ConnectionDB.java
: Establishes connection to the database.
- Upon starting the application, a menu with different options will be displayed.
- Select an option by entering the corresponding number.
- Follow the console instructions for each operation.
Feel free to contribute! You can improve the code, fix errors, or add new functionalities. Simply fork the repository, make your changes, and create a pull request.
This project is under the MIT License - see the LICENSE
file for more details.