Mysql shared library not found
On a fresh conda environment, mysqld cannot find the component_reference_cache
shared library.
$ ZESJE_SETTINGS=$(pwd)/zesje_dev_cfg.py python3 -m zesje.mysql start
mysqld --defaults-file=/home/hugo/Documents/zesje/mysql.conf --datadir=/home/hugo/Documents/zesje/data-dev/mysql --basedir=$CONDA_PREFIX/bin --lc-messages-dir=$CONDA_PREFIX/share/mysql --gdb
mysqld: Can't open shared library '/home/hugo/miniconda3/envs/zesje-dev/bin/component_reference_cache.so' (errno: 0 /home/hugo/miniconda3/envs/zesje-dev/bin/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'.
There is a similar issue here: https://github.com/bitnami/bitnami-docker-mysql/issues/124
Solution: specify the plugin directory explicitly.