Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Buller last edited by aha_1980
When an application connects to a MySQL database a password is required. Moreover, the password should be rather long, in order to provide strong security. In theory that is all good, but users do not like remembering long passwords. Is there a Qt way of dealing with this issue?
JonB last edited by JonB
Is there a Qt way of dealing with this issue?
No, not particularly. Depending on your application, you might save the password somewhere and re-use it so that the user does not have to enter it each time, or there is the
~/.my.cnffile, and/or you might make it so you have one username + password for the application to log onto the database under instead of the user logging onto it. But that is not special to Qt.
Kent-Dorfman last edited by
don't let them connect directly to the database, but use a REST interface through a web service.