Troubleshooting “Illegal mix of collations” error in mysql

前端 未结 17 2700
一生所求
一生所求 2020-11-22 08:11

Am getting the below error when trying to do a select through a stored procedure in MySQL.

Illegal mix of collations (latin1_general_cs,IMPLICIT) and

17条回答
  •  旧巷少年郎
    2020-11-22 08:24

    One another source of the issue with collations is mysql.proc table. Check collations of your storage procedures and functions:

    SELECT
      p.db, p.db_collation, p.type, COUNT(*) cnt
    FROM mysql.proc p
    GROUP BY p.db, p.db_collation, p.type;
    

    Also pay attention to mysql.proc.collation_connection and mysql.proc.character_set_client columns.

提交回复
热议问题