Создание базы данных завершается с ошибкой Authentication plugin 'caching_sha2_password' cannot be loaded
.
Вышеупомянутая ошибка возникает, когда я запускаю следующую команду:
$ RAILS_ENV=test rake db:create
Сообщение об ошибке:
Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/Cellar/mysql@5.6/5.6.46/lib/plugin/caching_sha2_password.so, 2): image not found
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>true, "pool"=>5, "socket"=>"/tmp/mysql.sock", "username"=>"root", "password"=>nil, "database"=>"ht_test"}, charset: utf8, collation: utf8_unicode_ci
(if you set the charset manually, make sure you have a matching collation)
Я знаю, что у других разработчиков были подобные проблемы сmysql@8.*. Вот почему я перешел на mysql@5.6
. Тем не менее я сталкиваюсь с этой проблемой.
Пожалуйста, предложите возможные решения.
Спасибо