名称
版本
系统
Ubuntu 16.04
MySQL
5.7.26
下载安装包
wget https://dev.mysql.com/get/Downloads/MySQL-8.mysql-server_8.0.16-2ubuntu18.04_amd64.deb-bundle.tar
wget http://ftp.br.debian.org/debian/pool/main/liba/libaio/libaio1_0.3.112-3_amd64.deb
wget http://ftp.br.debian.org/debian/pool/main/m/mecab/libmecab2_0.996-3.1_amd64.deb
wget http://ftp.br.debian.org/debian/pool/main/n/numactl/libnuma1_2.0.12-1_amd64.deb
安装
dpkg -i libaio1_0.3.112-3_amd64.deb
dpkg -i libmecab2_0.996-3.1_amd64.deb
dpkg -i libnuma1_2.0.12-1_amd64.deb
解压,安装mysql
tar xf mysql-server_5.7.26-1ubuntu16.04_amd64.deb-bundle.tar
dpkg -i mysql-common_5.7.26-1ubuntu16.04_amd64.deb
dpkg -i mysql-community-client_5.7.26-1ubuntu16.04_amd64.deb
dpkg -i mysql-client_5.7.26-1ubuntu16.04_amd64.deb
dpkg -i mysql-community-server_5.7.26-1ubuntu16.04_amd64.deb # 会提示输入MySQL的root密码
启动MySQL
systemctl start mysql.service
查看端口
root@ubuntu:~# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 12655/mysqld
OK,服务起来了,安装完毕。
手机扫一扫
移动阅读更方便
你可能感兴趣的文章