A
A
AlexSer2020-12-30 11:06:45
Qt
AlexSer, 2020-12-30 11:06:45

What is the cause of QT MYSQL error?

I'm running the release version on 1 computer (directly from a flash drive), the console shows everything is in order, the connection is established.
I turn to another, the error "Driver not loaded" appears. And to be honest, I'm confused. All drivers are compiled and lie inside the program. What else can influence?
I run the program not on the PC where QT is installed.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ronald McDonald, 2020-12-30
@Zoominger

Look here: Qt. QSqlDatabase: QMYSQL driver not loaded. Why? How to fix?

K
Konstantin Stepanov, 2020-01-04
@koronabora

Throw all the libraries that the mysql plugin uses directly into the application's executable. Libraries are best taken from a working PC with a similar bit depth.
Ideally, recompile qt statically and do the same with mysql and use them.

A
AlexSer, 2020-01-14
@AlexSer

If someone has the same error - the solution is to install VC ++ 2010. Everything will work right away

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question