Ubuntu服务器搭建 - 环境篇
基于腾讯云服务器 - Ubuntu 20.04 LTS
一、安装 - MySQL
1.1 概述
MySQL安装方式有三种:
1. 使用Ubuntu 包管理工具 apt安装
2. 使用MySQL官方APT存储库安装
3. 使用MySQL官方二进制发行版安装
1.2 安装 MySQL
使用MySQL官方APT存储库安装
$ wget https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb
$ sudo dpkg -i mysql-apt-config_0.8.29-1_all.deb
$ sudo apt update
$ sudo apt install mysql-server
$ sudo systemctl status mysql
配置默认端口:
<