先备份数据库,以免造成数据丢失。
更新 Source List:
sudo sed -i 's/10.6/10.11/' /etc/apt/sources.list.d/MariaDB.list
sudo apt update
停止 MariaDB:
sudo systemctl stop mariadb
卸载 MariaDB:
sudo apt-get remove mariadb-server
安装并启动:
sudo apt-get install mariadb-server
systemctl start mariadb
为了确保兼容,执行:
mariadb-upgrade -p