MySQL
今のものはMariaDB10.3.8
https://engineers.weddingpark.co.jp/?p=1827
MariaDB [tde_test]> install plugin keyring_file soname 'keyring_file.so';
ERROR 1126 (HY000): Can't open shared library '/usr/lib/mysql/plugin/keyring_file.so' (errno: 2, cannot open shared object file: No such file or directory)
既に入ってつプラグイン
root@5f63c3989c02:~# ls -la /usr/lib/mysql/plugin/
total 948
drwxr-xr-x 2 root root 4096 Jul 27 2018 .
drwxr-xr-x 3 root root 4096 Jul 27 2018 ..
-rw-r--r-- 1 root root 66640 Jul 2 2018 auth_ed25519.so
-rw-r--r-- 1 root root 10416 Jul 2 2018 auth_pam.so
-rw-r--r-- 1 root root 6240 Jul 2 2018 auth_socket.so
-rw-r--r-- 1 root root 10568 Jul 2 2018 disks.so
-rw-r--r-- 1 root root 18888 Jul 2 2018 file_key_management.so
-rw-r--r-- 1 root root 96648 Jul 2 2018 ha_archive.so
-rw-r--r-- 1 root root 68080 Jul 2 2018 ha_blackhole.so
-rw-r--r-- 1 root root 96800 Jul 2 2018 ha_federated.so
-rw-r--r-- 1 root root 129352 Jul 2 2018 ha_federatedx.so
-rw-r--r-- 1 root root 137664 Jul 2 2018 ha_sphinx.so
-rw-r--r-- 1 root root 159368 Jul 2 2018 handlersocket.so
-rw-r--r-- 1 root root 6592 Jul 2 2018 locales.so
-rw-r--r-- 1 root root 10528 Jul 2 2018 metadata_lock_info.so
-rw-r--r-- 1 root root 11328 Jul 2 2018 query_cache_info.so
-rw-r--r-- 1 root root 10864 Jul 2 2018 query_response_time.so
-rw-r--r-- 1 root root 59800 Jul 2 2018 server_audit.so
-rw-r--r-- 1 root root 10656 Jul 2 2018 simple_password_check.so
-rw-r--r-- 1 root root 10784 Jul 2 2018 sql_errlog.so
-rw-r--r-- 1 root root 11040 Jul 2 2018 wsrep_info.so
Dockerログを見る
2020-10-29 17:02:55 0 [ERROR] mysqld: unknown variable 'early-plugin-load=keyring_file.so'
2020-10-29 17:02:55 0 [ERROR] Aborting
プラグインの設定値を認識してない??
plugin-install
https://dev.mysql.com/doc/refman/5.6/ja/server-plugin-loading.html
手順に従い再起動Docker+MySQL
https://qiita.com/baster/items/32a66766cbfd28e63a6b#mysql%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%81%AE%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA
docker restart [ContainerID]
- コンテナの起動 docker-compose up -d
- dbコンテナへのログイン docker exec db bash
- MySQLサーバにログイン mysql -uroot
概要辺り
command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"