2015年8月17日月曜日

mysql で漢字が化ける。

/etc/mysql/my.cnf
[mysqld]
character-set-server=utf8
[mysql] 
default-character-set=utf8

/etc/init.d/mysql restart

※サーバ側は、mysql5.5以降表記が変わったらしい。

確認は、
mysql> 

show variables like 'character%';
show global variables like 'character%';

0 件のコメント:

コメントを投稿

python バージョン切り替え

# dnf install python3.9 # dnf install python3.11 # dnf install python3.12 # dnf install python3.13 # alternatives --install /usr/bin/python ...