Unable to retrieve data from MySQL
General and Desktop
9
Posts
2
Posters
1.8k
Views
2
Watching
-
Hi,
Empty database ?
SQLite database connection will always succeed in the sense that if there's no database a new one is created (that's how SQLite works internally it's not Qt specific)
-
Is it located in the same folder as your application ?
-
There's something not clear… Your title talks about MySQL but your code tries to use a sqlite database, which one is correct ?
If we are talking about sqlite: since you are not giving the full path to your database file, then it must be in the same folder as the application.
-
If you are using a MySQL database why change to SQLite ?