phpMyAdmin
phpMyAdmin for quick changes
phpMyAdmin is a web UI for MySQL — handy on XAMPP/WAMP to browse hotel_db tables, import SQL files, and fix test data while learning. It complements Workbench but should not replace versioned migration scripts in team workflows.
Import loads hotel_schema.sql in one step. Structure shows rezervacije columns; Browse shows paginated rows. Search helps find a guest by email before writing a JOIN query in the SQL tab. In hotel_db reception, finance, and housekeeping share gosti, sobe, rezervacije, placanja, and zaposleni — every change must stay consistent for all app modules.
In depth
Restrict phpMyAdmin in production (VPN, IP whitelist, strong auth). Never expose it publicly with root. Treat every manual edit as a temporary fix until captured in a .sql migration file. In Workbench run the sample SQL on test data before production, check EXPLAIN as tables grow, and document expected results for teammates.
Key points
- Web UI in browser. — hotel_db example.
- Visual table creation. — hotel_db example.
- Import .sql files. — hotel_db example.
- Common on XAMPP. — hotel_db example.
- Production needs restrictions. — hotel_db example.
Common mistake
Changing production hotel_db schema via phpMyAdmin without migration and backup. Typical fallout: mismatched reception vs finance data, lost reservations, or blocked check-ins at peak season — always backup before production DDL/DML.
Summary
phpMyAdmin is auxiliary; primary work stays in versioned SQL scripts checked into Git. Practice again on hotel_db until you can explain every result row and tie it to hotel workflows (check-in, billing, reporting).
Note: Tip: keep versioned .sql scripts (hotel_schema.sql, seed.sql) in Git — reproducibility matters when several people work on the same hotel_db model.
