mysql

Mysql2::Error: Table 'myapp_development.post_tags' doesn't exist のエラー解決

背景 postを削除しようとしたら、このエラーが起こった。 解決のプロセス mysqlのテーブルを見てみる mysql> use myapp_development Reading table information for completion of table and column names You can turn off this feature to get a quicker s…

mysql8.0のエラー Plugin caching_sha2_password could not be loaded: /usr/lib/x86_64-linux-gnu/mariadb19/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory

MySQL5.7までの認証プラグインには mysql_native_password がデフォルトで使用されていましたが、MySQL8.0より新たに追加された caching_sha2_password プラグインがもともとコードに書かれていたのに無いと言うことは、migrateとかをすればいいと思う。 htt…