This document provides complete setup instructions for the Academic-Database project using XAMPP (MariaDB) as the backend and Microsoft Access as the frontend GUI.
- Download XAMPP from: https://www.apachefriends.org/
- Run installer and select:
- Apache
- MySQL/MariaDB
- PHP (optional)
- Launch XAMPP Control Panel.
- Start MySQL.
Required to allow MS Access to connect to MariaDB.
- Download MariaDB ODBC driver (32-bit or 64-bit depending on your Access version): https://mariadb.com/downloads/connectors/odbc/
- Install the driver.
Any version 2010 or later will work.
Used to create .sql files.
https://notepad-plus-plus.org/
You can use either:
- Click Shell in XAMPP Control Panel
- Run:
mysql -u root -p
- Navigate to:
C:\xampp\mysql\bin - Run:
mysql -u root -p
All SQL files should be located in your project's /sql/ folder.
Example structure:
/sql/
01_create_database.sql
02_create_tables.sql
03_insert_data.sql
To execute them:
SOURCE C:/path/to/01_create_database.sql;
SOURCE C:/path/to/02_create_tables.sql;
SOURCE C:/path/to/03_insert_data.sql;Run:
SHOW DATABASES;
USE your_database_name;
SHOW TABLES;- Press Win + R
- Type:
odbcad32 - Choose the correct version:
- 32-bit for 32-bit Access
- 64-bit for 64-bit Access
-
Go to the System DSN tab.
-
Click Add.
-
Choose:
MariaDB ODBC 3.1 Driver(or version installed)
-
Fill in:
- Data Source Name: AcademicDB
- Server: localhost
- User: root (or another user)
- Password: (your MariaDB password)
- Database: select your project’s DB
-
Click Test to verify connection.
-
Save.
Create a new blank database (.accdb file).
- Go to External Data tab.
- Choose ODBC Database.
- Select:
- Link to the data source by creating a linked table
- Choose your DSN (e.g., AcademicDB).
- Select tables to link.
After linking, your MariaDB tables appear in Access with a 🔗 link icon.
- You can now build forms, queries, macros, and reports using the linked tables.
- Changes in Access immediately affect the MariaDB backend.
- ODBC must remain active for real-time data sync.
- Access handles front-end logic (UI, reports, queries).
- MariaDB holds all data storage and SQL integrity.
- VBA modules (optional) can automate tasks or enforce business rules.
Edit the .sql files in /sql/ using Notepad++.
Execute again in terminal:
SOURCE updated_file.sql;mysqldump -u root -p your_database > backup.sql- phpMyAdmin (Included with XAMPP)
- DBeaver (Recommended)
- HeidiSQL
- MySQL Workbench
- Git for version control
- VS Code for SQL and VBA
Following these steps, your system will be fully configured:
- MariaDB backend running in XAMPP
- SQL scripts applied via terminal
- MS Access frontend linked via ODBC
- Complete CRUD operations through Access
- SQL schema and data versioned in
/sql/
Your environment is now ready for development and use.