Skip to content
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

mysqld uses local /usr/lib/plugins rather than nix ones #2524

Open
jefft opened this issue Feb 17, 2025 · 0 comments
Open

mysqld uses local /usr/lib/plugins rather than nix ones #2524

jefft opened this issue Feb 17, 2025 · 0 comments
Labels
bug Something isn't working triage Issue needs triage

Comments

@jefft
Copy link

jefft commented Feb 17, 2025

What happened?

When mysqld starts, I get a bunch of odd warnings:

mysqld: Can't open shared library '/usr/lib/mysql/plugin/component_reference_cache.so' (errno: 0 /usr/lib/mysql/plugin/component_reference_cache.so: cannot open shared object file: No such file or directory)
mysqld: Cannot load component from specified URN: 'file://component_reference_cache'.                                                                                                                                                   
2025-02-17T15:45:48.699464Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead.
2025-02-17T15:45:48.699572Z 0 [System] [MY-010116] [Server] /home/jturner/src/github.com/jetify-com/devbox/examples/databases/mysql/.devbox/nix/profile/default/bin/mysqld (mysqld 8.0.36) starting as process 2883879
2025-02-17T15:45:48.700953Z 0 [ERROR] [MY-010342] [Server] Can't read from messagefile '/usr/share/mysql/english/errmsg.sys'
2025-02-17T15:45:48.701297Z 0 [Warning] [MY-000090] [Server] Unknown LDML tag: 'charsets/charset/collation/rules/import'.       
2025-02-17T15:45:48.701305Z 0 [Warning] [MY-000090] [Server] Unknown LDML tag: 'charsets/charset/collation/rules/import/source'.
2025-02-17T15:45:48.701327Z 0 [Warning] [MY-000090] [Server] Unknown LDML tag: 'charsets/charset/collation/rules/import'.       
2025-02-17T15:45:48.701334Z 0 [Warning] [MY-000090] [Server] Unknown LDML tag: 'charsets/charset/collation/rules/import/source'.
2025-02-17T15:45:48.701352Z 0 [Warning] [MY-000090] [Server] Unknown LDML tag: 'charsets/charset/collation/rules/import'.       

I happen to have mariadb installed in /usr/lib/mysql. It appears that the system-wide /usr is being used instead of the Nix-provided one.

Steps to reproduce

This can be seen in any project using mysql, e.g.:

$ cd ~/src/github.com/jetify-com/devbox/examples/databases/mysql
$ devbox run mysqld --verbose --help | grep /usr
2025-02-17T15:49:14.815119Z 0 [ERROR] [MY-010342] [Server] Can't read from messagefile '/usr/share/mysql/english/errmsg.sys'
basedir                                                      /usr/
character-sets-dir                                           /usr/share/mysql/charsets/
language                                                     /usr/share/mysql/
lc-messages-dir                                              /usr/share/mysql/
plugin-dir                                                   /usr/lib/mysql/plugin/

Command

No response

devbox.json

Devbox version

0.14.0

Nix version

nix (Nix) 2.18.5

What system does this bug occur on?

macOS (Intel)

Debug logs

No response

@jefft jefft added bug Something isn't working triage Issue needs triage labels Feb 17, 2025
jefft added a commit to jefft/devbox that referenced this issue Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issue needs triage
Development

No branches or pull requests

1 participant