Introduction
SQL stands for Structured Query Language, a special programming language used to manage data held in a relational database management system. A SQL server is a database system designed to use one of the many types of SQL programming language to manage its data.
Note
If you want to learn more about SQL, visit this link: http://www.w3schools.com/sql/sql_intro.asp.
Qt supports several different types of SQL driver in the form of plugins/add-ons. However, it's very easy to integrate these drivers to your Qt project. We will learn how to do it in the following example.
How to do it…
Let's set up our SQL server before we dive into Qt:
Before setting up Qt for SQL, we need to install and set up a MySQL server. There are many ways you can install it. The first method is to download MySQL from the official website at http://dev.mysql.com/downloads/mysql/ and install it. After that, you also need to install the MySQL Workbench from http://dev.mysql.com/downloads/workbench/ to administrate...