The sad solution was to both change the db collation and recreate the views/functions to force them to use the current collation. source:http://stackoverflow.com/questions/3029321/troubleshooting-illegal-mix-of-collations-error-in-mysql
Aug 8, 2016
2
Level 2
SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (utf8_general_ci,COERCIBLE) and (utf8_unicode_ci,COERCIBLE) for operation '='
I am trying to query a view created on my database but get this error i have tried changing the view to a new view but still getting the same error my whole database is set up to
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
so this is what I have tried
$onformance= DB::table('fullCompleted')
->where('result','=','Success COLLATE utf8_unicode_ci')
but it still not showing anything please help or just point me to read about eloquent, mysql I have tried all
i would like the eloquent query to be like so
DB::statement("SELECT count(*) FROM fullCompleted WHERE result = 'Success COLLATE utf8_unicode_ci'") ;
tried this it returns one no errors just to say the query return a line would like it to actual return a value
Level 2
Please or to participate in this conversation.