Beyond mysqld: Workbench GUI, phpMyAdmin on hosting, cloud RDS/Aurora, and migration tools integrate with PHP/Laravel stacks.
Tools
- mysql client — interactive SQL shell
- MySQL Workbench — schema design, EXPLAIN visualizer
- phpMyAdmin — common on shared hosting
- Managed cloud — AWS RDS, Google Cloud SQL, PlanetScale
Connection string shape
-- PHP PDO DSN example:
mysql:host=127.0.0.1;port=3306;dbname=practice;charset=utf8mb4Practice: Copy SQL into the mysql client, local MySQL/MariaDB, or DB Fiddle (MySQL dialect).
MariaDB note
MariaDB fork maintains high compatibility—verify version for window functions and JSON functions your app needs.
Important interview questions and answers
- Q: utf8mb4 in DSN?
A: Full Unicode including emoji—prefer over legacy utf8 three-byte subset. - Q: Workbench use?
A: Visual EXPLAIN and schema diff for teams uncomfortable with CLI only.
Self-check
- Name one GUI tool for MySQL.
- Why charset=utf8mb4 in connection strings?
Tip: Always use charset=utf8mb4 in DSN and server defaults.
Interview prep
- utf8mb4?
Full Unicode charset—use in DB, tables, and connection DSN.
- Workbench?
GUI for schema, queries, and visual EXPLAIN.