参照网上教程,做的过程遇到很多问题,记下.
1.首先我将软件中心搜到的mysql server和客户端都装上了.
3.参照qt creater的帮助,搜sql可以找到database driver字样
You need the MySQL header files and as well as the shared librarylibmysqlclient.so. Depending on your Linux distribution you may need to install a package which is usually called "mysql-devel".
Tell qmake where to find the MySQL header files and shared libraries (here it is assumed that MySQL is installed in /usr/local) and runmake: