Mysql::Error: Data too long for column ‘name’ at row 1: INSERT INTO categories
的なエラーが出てきたので、
1406. Data too long for column – MySQL
ターミナルからmysqlに以下のコードを実行
1 | SET @@global.sql_mode= ''; |
そしたら、次は
1 | Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT |
1 | utf8_genneral_ci |
参考にした記事
Forums » Data too long for column ‘title’ at row 1
ちゃんと文字コードはあわせましょうbyRails+MySQL
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) within stored procedure