sudo apt-get install mysql-server
apt-get isntall mysql-client
sudo apt-get install libmysqlclient-dev
安装成功后可以看一下有没有进程在监听
sudo netstat -tap | grep mysql
cd ~/Qt5.14.0/5.14.0/Src/qtbase/src/plugins/sqldrivers && ~/Qt5.14.0/5.14.0/gcc_64/bin/qmake sqldrivers.pro && make && make install
然后复制
/home/user/qt5.12.6/5.12.6/gcc_64/plugins/sqldrivers/libqsqlmysql.so 到打包目录
标签:插件,qt,get,sudo,apt,install,&&,mysql
From: https://www.cnblogs.com/nocanstillbb/p/17025727.html