Some time ago, I had a headache with the MySQL library of qt. First of all, I found that an exception occurred when I read the QDir file, and sometimes it can be read, but sometimes it cannot be read. The following is the system Command Used in the program.
It can also be executed sometimes, but sometimes an error occurs. The return value is 32512.
For errors like this, we do not know where to start at the moment. Later, I decided to add files one by one to the project and exclude them one by one. Later I found that this error occurs when the database is inserted in the program. We use c MySQL instead of qt. Our colleagues in this MySQL database have used it in their programs, so this problem will not occur.
Later, a master told me that the MySQL I installed may conflict with the qt automatic MySQL, and later I compiled a qt MySQL library to replace it, the result does not really show that problem.
The above content is an introduction to the MySQL library of qt. I hope you will get something better.