Let's set up our SQL Server before we dive into Qt:
- Install and set up a MySQL Server. There are many ways you can install it. One 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 MySQL Workbench from http://dev.mysql.com/downloads/workbench/ to administrate your databases.
- An alternative method is to install a third-party package that comes with MySQL and other useful applications, such as the Apache web server or phpMyAdmin, all in a unified installer. Examples of such packages are XAMPP, found at https://sourceforge.net/projects/xampp/, and AppServ, found at https://www.appservnetwork.com/en/download/.
- In this example, we ...