Ubuntu 16.04 安装 MySQL 8.0 全过程
Ubuntu 16.04 安装 MySQL 8.0 全过程
-
安装 wget
sudo apt-get install wget -
wget https://repo.mysql.com//mysql-apt-config_0.8.10-1_all.deb安装 apt 镜像 -
sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb执行命令之后出现的内容两次都选择 OK -
sudo apt-get update更新 apt-get -
sudo apt-get install mysql-server执行命令会出现设置密码界面 -
sudo systemctl start mysql启动服务 -
sudo systemctl enable mysql开机启动
添加普通用户并开启远程连接
-
use mysql; -
CREATE USER 'user'@'%' IDENTIFIED BY '123456'; -
grant all on *.* to 'user'@'%';
如果不能连接检查 Iptables , 安全组, SElinux 。
本作品采用《CC 协议》,转载必须注明作者和本文链接
关于 LearnKu
推荐文章: