mysql處理特殊字元

2022-02-05 07:45:58 字數 717 閱讀 9041

修改表

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...