Ubuntu?????MySQL?????
???????????? ???????[ 2016/9/5 14:14:36 ] ????????SQL Server ?????
????MySQL?????????latin??????????????????????????????δutf8????????????ubuntu14??ubuntu16?????в????
?????????????my.cnf
????$sudo vim /etc/mysql/my.cnf
????[client]
????default-character-set=utf8 #????????У?????????
????port = 3306
????socket = /var/run/mysqld/mysqld.sock
????.............
????[mysqld]
????character_set_server=utf8 #????????У?????????
????user = mysql
????pid-file = /var/run/mysqld/mysqld.pid
????????????????ɡ?
????sudo /etc/init.d/mysql restart
????????????????е?database????????????utf8???
????mysql> show variables like '%char%';
????Ubuntu16?????MySQL?????
??????Ubuntu14???в???????????????????λ?ò?????????????£?
????1 ???mysql?????????
????sudo vim /etc/mysql/conf.d/mysql.cnf
??????[mysql]???·???????????????????????????????????С?mysql??)
????no-auto-rehash default-character-set=utf8
????/etc/mysql/mysql.conf.d/mysqld.cnf
??????[mysqld]?????
????socket = /var/run/mysqld/mysqld.sock port = 3306 character-set-server=utf8 ????????server?????е?汾??set??
????????mysql:
????sudo /etc/init.d/mysql restart
???????????
????mysql> show variables like '%char%';
????????????????δ???????????????????????????:?????
????mysql???????????????????? ?????????θ??? ????????????????Ч??????????????????????
????????1:
????alter database ??????? charset utf8
????????2:
????set character_set_database = utf8
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11