运行下面指令
1 2 3 4 5 6 7 8 9 10 11
| sudo apt update sudo apt install software-properties-common gnupg2 curl -y
curl -LsS -O https://downloads.mariadb.com/MariaDB/mariadb_repo_setup sudo bash mariadb_repo_setup
sudo apt update sudo apt install mariadb-server mariadb-client
sudo systemctl start mariadb sudo systemctl enable mariadb
|
初始化root密码为空
使用 mysql -uroot -p 登录