一、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