This page walks through creating the MySQL schema required by the Taller de Inglés UAEMEx Ecatepec system. You must complete these steps before deploying the WAR to GlassFish, as the application connects to MySQL immediately on startup and will fail with aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/LuisAMoralesA/tallerIngles-UAEMEcatepec/llms.txt
Use this file to discover all available pages before exploring further.
SQLException if the database or user does not exist.
Crear la base de datos
Conectarse a MySQL como root
Open a terminal and log in to MySQL with an account that has
CREATE DATABASE and CREATE USER privileges:Crear el usuario de la aplicación
Create the dedicated MySQL user and grant it full privileges on the new schema:
Tablas del sistema
The TEI application uses 11 core tables. All tables must exist before the application is started — the application does not auto-create them.| Tabla | Descripción |
|---|---|
users | Credenciales de acceso (usuario, contraseña SHA-256, rango) |
admin_school | Datos personales de administradores |
teachers | Datos de profesores y grupo asignado |
students | Datos de alumnos, profesor asignado, referencias a pagos y calificaciones |
grupos | Grupos de clase con nivel y categoría |
grade | Catálogo de niveles: Básico, Intermedio, Avanzado |
category | Catálogo de categorías: Niños, Adolescentes |
report | Registro de calificaciones (1er parcial, 2do parcial, promedio) |
payment | Seguimiento de pagos: inscripción + 7 mensualidades |
payment_status | Catálogo de estatus: Activo, Baja, Pendiente |
pay_simbology | Calendario de mensualidades con fechas límite y costos |
Datos iniciales requeridos
Several features of the application depend on catalog tables being pre-populated before any user logs in. The tablesgrade, category, payment_status, and pay_simbology must contain their initial rows, otherwise the registration forms and payment tracking screens will display empty option lists.
Run the following INSERT statements after creating the schema:
pay_simbology table stores the monthly payment calendar (up to 7 monthly fees plus a registration entry). Populate it with the specific months, deadlines, and costs for each academic period before the semester begins. Each row represents one payment slot with fields for month, description_pay, cost_pay, period_pay, and deadline_pay.
The first administrator account must also be created before any user can log in. You can insert it directly via SQL into the
users table (with the password stored as a SHA-256 hash) and then add the corresponding personal record to admin_school, or use the administrator registration form once the application is deployed and accessible.Verificar la conexión
The application establishes its MySQL connection viaBaseDatos.configuracionBD using plain JDBC (DriverManager.getConnection). The full connection URL is:
SQLException with the full stack trace in:
- The
tallerdeinglesdatabase does not exist. - The
adminTallerInglesuser was not created or has insufficient privileges. - MySQL is not running, or is bound to a different port than
3306. - The credentials in
BaseDatos.configuracionBDwere changed in the source but the WAR was not rebuilt.