-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backup manager non compatible with latest versions of mariadb #144
Comments
Depends on your distrib. For instance with MariaDB 11.4/11.5 on my Ubuntu 24, you get fed with |
But there is something else that makes your ticket very relevant: so far, if your "root" user used unix_socket auth (only), the mysql client used to go for the socket protocol even if you specified a port in your command line. That's the assumption backup-manager takes here for instance. This isn't obvious from what' I'm reading on the mariadb auth changes from version 10.4 here and here but that's what I'm observing (see the test below). Worse, on ubuntu you cannot just uninstall the mariadb-client package and install the mysql-client one instead because the former is marked as 'auto' in apt and you cannot easily uninstall it without removing the mariadb-server itself...duh Fortunately there is a simple solution for that: specify BUT then you are likely to stumble upon the same issue a few lines down the road if your config requires a ALL backup and you're backing up databases separately: the mysql client is used to list the server's databases, and (again, assuming you have the mariadb-client-compat package or a symlink), the fact a port is specified leads you to a password auth and it becomes complicated as there is nothing similar to ===== One can see this behavior by himself using a docker mariadb server instance (where fortunately the mysql-client package isn't bound to the server one for some reason):
then from the docker instance:
back to the docker instance: ===== So now what to do ?
Now @fbruffaert seems @kissifrot is now the maintainer, so this project is still active but I'm willing to make a pull request anyway. |
MR #145 |
Hello,
After upgrading from mariadb 10 to 11.5, my backups are not working anymore because of mysql backups.
The logs read:
Using method "mysql". The "mysql" method is chosen, but is not found.
After some digging in source code, the problem is with those lines of code:
mysql=$(which mysql 2> /dev/null) || true
and
mysqldump=$(which mysqldump) || true
New versions of mariadb have renamed those commands.
Is backup-manager still maintened?
In the meantime, a temp fix for those who have the same issue is to create symlinks:
The text was updated successfully, but these errors were encountered: