MySQL Introduction & Fundamental Concepts
Overview of MySQL relational database management system, checking server version, status, and listing databases.
-- Check MySQL Server Version, Current Timestamp, and Connected User SELECT VERSION(), CURRENT_DATE(), NOW(), USER(); -- Show list of available databases on server SHOW DATABASES; -- Select and use active database USE company_db;
+-----------+----------------+---------------------+----------------+ | VERSION() | CURRENT_DATE() | NOW() | USER() | +-----------+----------------+---------------------+----------------+ | 8.0.36 | 2026-09-01 | 2026-09-01 23:00:00 | root@localhost | +-----------+----------------+---------------------+----------------+ 1 row in set (0.00 sec)