mysql處理特殊字元

2021-09-08 18:24:04 字數 717 閱讀 5397

修改表

alter table user convert to charset utf8mb4, character set utf8mb4;

修改列alter table user default character set utf8mb4,

modify realname varchar(100) character set utf8mb4 collate utf8mb4_unicode_ci;

show full columns from `user`  ;  這個是檢查當前編碼

show create table user;檢視表編碼

show variables like '%char%'

rename table abc to abc

mysql 配置檔案配置詳解

mysql資料庫5.5以上版本支援utf8mb4

同時配置檔案採用utf8mb4設定

[mysqld]

character-set-client-handshake = false

character-set-server = utf8mb4

collation-server = utf8mb4_unicode_ci

[client]

default-character-set = utf8mb4

mysql表大小寫問題

mysql處理特殊字元

修改表 alter table user convert to charset utf8mb4,character set utf8mb4 修改列alter table user default character set utf8mb4,modify realname varchar 100 ch...

mysql處理特殊字元

修改表 alter table user convert to charset utf8mb4,character set utf8mb4 修改列alter table user default character set utf8mb4,modify realname varchar 100 ch...

mysql特殊處理

mysql create table ef bc time query ok,0 rows affected 0.03 sec mysql insert into ef values current timestamp query ok,1 row affected 0.00 sec mysql s...