- 下载二进制包:https://mariadb.org/download/
- 直接解压到目标目录/usr/local/mariadb-10.5.5,参考:https://mariadb.com/kb/en/installing-mariadb-binary-tarballs/
- 卸载旧的mariadb:apt remove mariadb-server-core,参考:https://mariadb.com/kb/en/upgrading-from-mariadb-101-to-mariadb-102/
- 启动新服务:/usr/local/mariadb-10.5.5/bin/mysqld_safe --user=mysql &
- 升级旧数据库:/usr/local/mariadb-10.5.5/bin/mariadb-upgrade -p
关闭数据库服务:
mysqladmin -u root -p shutdown
评论