borgbackupserver icon indicating copy to clipboard operation
borgbackupserver copied to clipboard

Mysql Plugin fails

Open zodorm opened this issue 1 month ago • 2 comments

Description

Failed to list databases: ERROR 1045 (28000): Access denied for user 'bbs_backup'@'localhost' (using password: YES) Changing the password has no effect

Steps to Reproduce

Run a backup that includes a Mysql plugin

Installation Type

Docker

BBS Version

2.98.5

Agent Version (if applicable)

2.98.4

Agent OS (if applicable)

Ubuntu / Debian

Relevant Logs


zodorm avatar Oct 08 '26 07:10 zodorm

Thanks for reporting this, and sorry for the trouble. It's a regression in agent 2.98.4.

That release moved the MySQL password from the command line into a private option file, so it no longer shows in the process list. The catch: MySQL and MariaDB read the user's own ~/.my.cnf after that file, so when root's ~/.my.cnf has a [client] password, that password was used instead of the plugin's. That's why changing it in BBS made no difference.

The fix is on main: the plugin's password always wins again, while other settings in your option files (socket, SSL) still apply. It ships with the next release and needs the agent update that comes with it. I tested it with MariaDB and MySQL clients and a conflicting ~/.my.cnf.

Until then, removing or renaming root's ~/.my.cnf on that client (or making its password match the plugin's) gets backups working again.

marcpope avatar Oct 08 '26 13:10 marcpope

Thank you , it was fixed before i even had a chance to apply the work around, all working perfectly

zodorm avatar Oct 09 '26 06:10 zodorm