SQL is a query programming language for managing relational databases. MySQL is a SQL-based relational database management system.