I am new to cleavr and, so far, finding it absolutely amazing. Is it planned to support newer versions of MariaDB in future, like 10.7? Moreover, would highly appreciate a convenient upgrade from the 10.4 version to the newer ones.
First of all, welcome to Cleavr Forum. And we’re glad that you’re liking it so far.
We plan to support MariaDB 10.7 but right now there are some other features/fixes on top priorities. So, it might take a while before we approach supporting MariaDB 10.7.
We’ll notify you once we start working on the feature.
Please check it out and let us know how you find it.
NOTE: We don’t support un-installing a database service from Cleavr inorder to protect users from losing their data. But, we’re working on making this a better experience. Do let us know if you still want to un-install existing database service and install MariaDB 10.7.
@anish I attempted to upgrade (10.4 to 10.7) on a test server by myself. It worked fine, including keeping all DB’s, DB users and cleavr compatibility. Here is what I’ve done as root user:
# Adding MariaDB 10.7 repo
curl -LsS -O https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
bash mariadb_repo_setup --mariadb-server-version=10.7
# Run apt update (command above should have done it anyways)
apt update
# just for safety backing up dbs before upgrading
cp -v -a /var/lib/mysql/ /var/lib/mysql_backup
# installing MariaDB Server
apt install mariadb-server -y
# reloading deamons as mariadb server has changed
systemctl daemon-reload
# start mariadb service
systemctl start mariadb.service
# update databases (which already happened during the install of new mariadb version)
# could still be run with --force to run it anyway
mysql_upgrade -uroot
In cleavr adding DB’s and creating users worked fine. But as expected because I am unable to tell cleavr that the mariadb version has changed. On services overview, it is still saying that it is 10.4.
Would be so great to see this as an option in the dropdown menu to kind of “officially” upgrade to 10.7 in cleavr. This same procedure could be used for all upcoming versions, so I would say it would be worth implementing it. Especially as there is no possibility as setting up a new server to get 10.7 “officially” at the moment
I haven’t had any issues with database integrity in the past, upgrading MariaDB. Have been using huge complex db’s for marketing analysis without any problems.
What can probably happen is that the upgrading overwrites some configs of the mariadb server. So, it would potentially be better to remove (maybe purge) the old version first and then install the new one in the cleavr way. But keeping the /var/lib/mysql/ and running “mysql_upgrade -uroot” to upgrade existing DB’s.
I am really burning for this, and would like to support you on this as much as I can
First of all, thank you for your valuable time and effort. We really appreciate it.
I can understand the need for it, but we’re not in a position to implement this. One of the reasons is to avoid any breaking change it may introduce.
Since you’ve already gone through it, do you want to write a blog about it? If you don’t want to do it, I’ll be writing a blog post about Upgrade MariaDB 10.4 to MariaDB 10.7 with database and its users giving you credit for bringing this up and all the resources you’ve shared.
You can send a PR with the script you’ve been using to upgrade the database so that any future traveler can save some of the precious time that you’ve lost exploring things
@anish sure I will write about it and make a pr with the script . I’m still hoping that the topic may come up again in the future. At least a possibility to remove 10.4 and install 10.7 the official way