mysql 字符集设置

2018-11-12  本文已影响0人  noteby
  1. 查看修改数据库字符集编码
    mysql> show variables like "char%";  
    mysql> show variables like "collation%";  
    mysql> set character_set_server=utf8;  
    mysql> set collation_server=utf8_general_ci; 
    
  2. 修改数据表字符集编码
    mysql> alter table xxx default character set utf8 collate utf8_general_ci;
    
上一篇 下一篇

猜你喜欢

热点阅读