HAMPP Setup With Java PDF
HAMPP Setup With Java PDF
Djuraev Sirojiddin
November 11, 2024
Setting Up XAMPP and MySQL
Step 1: Download and Install XAMPP
2
Step 2: Start XAMPP Services
8
Step 3: Open phpMyAdmin to Manage Databases
• Access phpMyAdmin:
• Open a web browser and navigate to http://localhost/phpmyadmin.
• phpMyAdmin is a web-based tool to manage MySQL databases.
11
Step 4: Create a New Database Named books
• Create Database:
• In phpMyAdmin, click on the Databases tab.
• In the Create database field, enter books.
• Click Create to make the books database.
12
Step 5: Verify the Database Creation
• Check Database:
• After creation, the database should appear on the left sidebar in phpMyAdmin.
• Click on books to view its structure and begin adding tables or importing data.
13
Additional Notes
• Now, you can create tables, insert data, and run queries within the books database
using phpMyAdmin or SQL commands in the SQL tab.
• Remember to stop Apache and MySQL services in the XAMPP Control Panel when
done to free up system resources.
14
Configuring JavaFX with MySQL
Step 1: Set Up JavaFX and MySQL Dependencies
15
Step 2: Configure JavaFX Project Module Dependencies
module-info.java:
module YourProjectName {
requires javafx.graphics;
requires javafx.controls;
requires mysql.connector.java;
requires java.sql;
opens org.example;
}
16
Step 3: Create Database Connection Utility
DatabaseUtil.java:
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
18
Next Steps
19