Edit /etc/mysql/my.cnf
Locate the section that starts [mysqld]
And add these lines under it:
# utf8
init-connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_general_ci


Edit /etc/mysql/my.cnf
Locate the section that starts [mysqld]
And add these lines under it:
# utf8
init-connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_general_ci