本文主要是介绍【MySQL】ubuntu16.04安装mysql,然后源码编译Qt5.12.4版本的libqsqlmysql.so,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
一、Ubuntu16.04.5 安装 MySQL
1、使用apt命令安装
sudo apt install mysql-server
安装过程会提示,推荐设置MySQL的root用户密码(注意:这里root不是指ubuntu系统的root)
While not mandatory, it is highly recommended that you set a password for the MySQL administrative "root" user.If this field is left blank, the password will not be changed.Net password for the MySQL "root" user:
2、安全设置
使用mysql_secure_installation配置mysql安全选项
$ sudo mysql_secure_installation Securing the MySQL server deployment.Enter password for user root: VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the
这篇关于【MySQL】ubuntu16.04安装mysql,然后源码编译Qt5.12.4版本的libqsqlmysql.so的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!