Last active
December 27, 2016 09:42
-
-
Save zhengxiaowai/ebc9bdd5210fec74a8a67fbddae5273e to your computer and use it in GitHub Desktop.
mysql5.7 配置 utf8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/mysql/mysql.conf.d/mysqld.cnf | |
[mysqld] | |
character-set-server=utf8 | |
collation-server=utf8_general_ci |
ALTER TABLE t_yejr
CONVERT TO CHARACTER SET UTF8;
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GRANT replication slave ON *.* TO 'slave'@'%' IDENTIFIED BY 'password'