Connect Qt to MySQL
-
Yes, I was, so I reinstall Qt 5.6, finally, and I get a (last?) error : The compiler is MSVC 2015, but at the line "nmake", i get a invalid command error
So I tried to call vcvarsall.bat, but I doesn't not change anything
(Yes i'm really a beginner) -
In your previous post I see: mingw32-make
That means you was using MinGW. Did you switch to MSVC2015?
Did you rerun qmake? -
Yes I have, I desinstalled Qt 5.5, and reinstall Qt 5.6, and now the Qt console is name MSVC 2015, but it don't recognized the line "nmake"...
Yes I rerun qmake -
Open a Visual Studio developer console, that will make thing easier. IIRC it should be in one of the subfolder of the Visual Studio Start menu entry.
-
I did it : qmake become invalid command, how do I set environnement to avoid it ?
-
Either use the full path to qmake or go to the Qt folder and IIRC there's a qtvars.bat file to setup the paths needed.
-
Ok perfect, I finally made it, but I don't understand where I have to put the dll to run a project with MySQL ?
-
Ok perfect, I finally made it, but I don't understand where I have to put the dll to run a project with MySQL ?
@Detordreur like all sql plugin -> /sqldrivers
-
This is what i've done, in the folder of the executable, but when I try to compile this gives me :
(10061) QMYSQL : Unable to connect -
Isn't it rather when you run your application ?
If it can't connect, did you check your network settings ? Is your database running ?