2018-09-14虚拟机ubuntu下配置mysql环境
2018-09-14 本文已影响0人
Hie_9e55
安装MySQL
sudo apt install mysql-server
安装过程中需要输入两次密码。


安装MySQL安全组件
sudo mysql_secure_installation
安装过程中首先需要输入MYSQL的root密码.
当询问“Change the root password?”时,输入“N”
剩下的问题可以敲击回车键,选择默认选项。
最后键入mysql -u root -p
并输入密码检验mysql是否成功安装