qt5.1.1 mysql ubuntu QMYSQL driver not loaded

后端 未结 2 986
隐瞒了意图╮
隐瞒了意图╮ 2020-12-16 06:34

I\'m trying to access mysql using Qt5.1.1 but i am getting the error the error below. I also searched a lot on google but unable to fix it.Please suggest me a solution so

相关标签:
2条回答
  • 2020-12-16 06:38

    If you are Ubuntu linux OS, you can install library:

    mic@ubt: ~$ apt-cache search libqt4-sql-mysql
    libqt4-sql-mysql - Qt 4 MySQL database driver
    
    mic@ubt: ~$ sudo apt-get install libqt4-sql-mysql 
    
    0 讨论(0)
  • 2020-12-16 06:59

    Well, for Qt5 you need install MySQL, using the next command on the terminal, you resolve the problem:

    sudo apt-get install libqt5sql5-mysql
    
    0 讨论(0)
提交回复
热议问题