Skip to content

docs: document MariaDB/MySQL binary logging prerequisite - #109

Merged
gantoine merged 3 commits into
mainfrom
docs/mysql-binlog-super-privilege
Jul 31, 2026
Merged

docs: document MariaDB/MySQL binary logging prerequisite#109
gantoine merged 3 commits into
mainfrom
docs/mysql-binlog-super-privilege

Conversation

@gantoine

Copy link
Copy Markdown
Member

Users pointing RomM at an external or managed MariaDB/MySQL server hit a hard startup failure when binary logging is enabled and the RomM DB user lacks SUPER: the migrations that create triggers on the roms table are refused, and the container dies with a raw SQLAlchemy traceback. This was never documented, so affected users had nothing to search for.

  • install/databases.md: new Binary logging and trigger privileges section with the error text, why it affects external servers (binlog is on by default on MySQL 8) and not the bundled mariadb:11, and the fixes: SET GLOBAL log_bin_trust_function_creators = 1, the persistent [mysqld] option-file version (including custom.cnf under /config on the linuxserver image), or a BINLOG ADMIN / SUPER grant.
  • troubleshooting/index.md: symptom bullet under "RomM won't start" linking to the above.
  • getting-started/quick-start.md: one line for people who drop the romm-db service and use their own server.
  • install/unraid.md: pointer next to the MariaDB template step.

Refs rommapp/romm#3932 (fix guidance from rommapp/romm#3932 (comment) and the surrounding thread).

Verified with mkdocs build --strict (social plugin disabled locally, missing libcairo).

🤖 Generated with Claude Code

gantoine and others added 3 commits July 31, 2026 11:45
Migrations create triggers on the roms table, which MariaDB/MySQL refuse
when binary logging is on and the RomM user lacks SUPER, aborting startup
with a raw traceback. Add the fix (log_bin_trust_function_creators or a
BINLOG ADMIN/SUPER grant) to the Databases page, and point at it from
troubleshooting, the quick start, and the Unraid guide.

Refs rommapp/romm#3932

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@gantoine
gantoine merged commit 8ac2df2 into main Jul 31, 2026
4 checks passed
@gantoine
gantoine deleted the docs/mysql-binlog-super-privilege branch July 31, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant