I am going to connect my program, which is written in Qt, to my database which is defined in MariaDB DBMS (XAMPP Software Package). So as you can see in the figure below, I have to install a MySQL connector instead of a MariaDB connector (This is what my book, Hand on-GUI programming with C++ and Qt said). 
I installed the latest MySQL connector from its official website and I went running my project this is the error that I faced after running this code.

The book said there is no need to worry just go copy the file "libmysql.dll" from the MySQL connector path to the execution path in Qt. The version I installed (MySQL Connector C++ 8.0), did not contain this file and I found a version (MySQL Connector C 6.1) that it does and I continued with the instructions of the book but the problem is not solved yet. I googled, checked StackOverflow questions, read articles, and search on youtube. Some of the solutions didn't work for me and others I didn't understand. Till now I just copied files such as "libmysql.dll", "qsqlmysql.dll", etc to many folders of Qt software path (and as u might guess nothing changed) and I also check the Qt website for this problem and I did not understand what should I do. I'll be very thankful to help me with this problem.

