【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】


前言

本文基于Ubuntu20.04 LST 以及MySQL 8.0.29,可视化工具使用mysql-workbench-community_8.0.29-1ubuntu20.04_amd64.deb


安装步骤

1.安装MySQL

sudo apt-get update  #获取最新的软件源
sudo apt-get install mysql-server #安装mysql

启动与关闭MySQL

service mysql start  #启动MySQL
service mysql stop  #关闭MySQL

2.配置MySQL

开始配置:

sudo mysql_secure_installation
...
# 1.询问是否安装密码插件,我选择 No
VALIDATE PASSWORD COMPONENT can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD component?
Press y|Y for Yes, any other key for No: n

# 2.为root用户设置密码
Please set the password for root here.

New password: 

Re-enter new password: 
#2.1 解决方法详见下一小节,解决bug
 ... Failed
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值