centos 7.0でのトリガの文字化けしの解決

1006 ワード

[root@iZ62jhlmmZ ~]# uname -a
Linux iZ62jhlmsymZ 3.10.0-123.13.2.el7.x86_64 #1 SMP Thu Dec 18 14:09:13 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@iZ62jhlmmZ ~]# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 9 Server version: 5.5.41-MariaDB MariaDB Server

プロファイルの変更
[root@iZ62jhlmmZ ~]# vi /etc/my.cnf.d/server.cnf

[mysqld]でcharacter-set-server=utf 8 character-set-filesystem=utf 8保存終了を追加
[root@iZ62jhlmsymZ ~]# service mariadb restart

mysqlで
SHOW VARIABLES LIKE 'character_set_%';SHOW VARIABLES LIKE 'collation_%';
結果が正しいかどうかを調べる
参考資料:
mysqlコマンドライン文字符号化の変更