Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Syntax error or access violation: 1115 Unknown character set: utf8mb4

I am migrating my classes but I am getting this error in laravel.

[PDOException]
 SQLSTATE[42000]: Syntax error or access violation: 1115 Unknown character set: 'utf8mb4'

[PDOException]
 SQLSTATE[42000]: Syntax error or access violation: 1115 Unknown character set: 'utf8mb4'

How do I resolve this error?

like image 528
Alexu Avatar asked Jan 24 '17 18:01

Alexu


1 Answers

Go to config/database.php and replace these two lines with these

'charset' => 'utf8', 'collation' => 'utf8_unicode_ci',

like image 154
Ali Rasheed Avatar answered Sep 23 '22 15:09

Ali Rasheed