ubuntu 安装 mysql
1. 安装
# 查看 mysql-server 版本
apt list mysql-server
# 安装, 建议安装之前,修改一下镜像,采用 淘宝镜像
sudo apt install mysql-server
安装日志如下
⋊> /m/c/U/f/shells apt list mysql-server -a 10:19:48Listing... Done
mysql-server/focal-updates,focal-security 8.0.26-0ubuntu0.20.04.2 all
mysql-server/focal 8.0.19-0ubuntu5 all
mysql-server/bionic-security,bionic-updates 5.7.35-0ubuntu0.18.04.1 all
mysql-server/bionic 5.7.21-1ubuntu1 all
⋊> /m/c/U/f/shells sudo apt install mysql-server 10:20:01[sudo] password for feijinping:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libcgi-fast-perl libcgi-pm-perl libevent-core-2.1-7 libevent-pthreads-2.1-7 libfcgi-perl libhtml-template-perl
libmecab2 mecab-ipadic mecab-ipadic-utf8 mecab-utils mysql-client-8.0 mysql-client-core-8.0 mysql-common
mysql-server-8.0 mysql-server-core-8.0
Suggested packages:
libipc-sharedcache-perl mailx tinyca
emitting double-array: 100% |###########################################|
reading /us