Skip to content

Fix/mariadb basedir spaces - #46

Merged
lukas-frey merged 1 commit into
developfrom
fix/mariadb-basedir-spaces
Oct 20, 2026
Merged

lukas-frey merged 1 commit into
developfrom
fix/mariadb-basedir-spaces

Conversation

@lukas-frey

Copy link
Copy Markdown
Member

Fixes partly #44

Installing MariaDB on macOS fails with FATAL ERROR: Could not find my_print_defaults.

The cause is in MariaDB's mariadb-install-db script: it looks up my_print_defaults with an unquoted $basedir/bin $basedir/extra (line 308 in 12.3.3), so the shell splits the path at the space in ~/Library/Application Support and searches two directories that don't exist. Every other use of $basedir and $datadir in the script is quoted.

Flock now runs the script from inside the package with --basedir=., so there's no space left to split. --datadir stays absolute. Windows uses mariadb-install-db.exe and is unchanged.

@lukas-frey
lukas-frey changed the base branch from main to develop October 20, 2026 15:11
@lukas-frey lukas-frey closed this Oct 20, 2026
@lukas-frey lukas-frey reopened this Oct 20, 2026
@lukas-frey
lukas-frey merged commit 11b3b19 into develop Oct 20, 2026
19 of 20 checks passed
@lukas-frey
lukas-frey deleted the fix/mariadb-basedir-spaces branch October 20, 2026 18:20
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