MySQL does not read user specific options in ~/.my.cnf
init-connect is ignored when you connect as the MySQL root user.

Check the file config/database.php for Laravel.  It needs to say something like: 'mysql' =&gt; [..., 'charset' =&gt; 'utf8mb4', 'collation' =&gt; 'utf8mb4_unicode_ci', ...]