ubuntu mysql支持中文
2015-04-23 16:00
155 查看
vim /etc/my.cnf
[client]
default-character-set=utf8
检查数据表所有字段的状态:
show full columns from $(table);
发现字段项非utf8,修改方法:
alter table
$(table) change $(columns)
$(columns) varchar(100) character set utf8 collate utf8_unicode_ci not null default '';
mysql授权命令
grant all privileges on $(database).* to "$(user)"@"%"identified by "$(password)";
grant
all privileges on $(database).* to "$(user)"@"localhost"identified by "$(password)";
[client]
default-character-set=utf8
检查数据表所有字段的状态:
show full columns from $(table);
发现字段项非utf8,修改方法:
alter table
$(table) change $(columns)
$(columns) varchar(100) character set utf8 collate utf8_unicode_ci not null default '';
mysql授权命令
grant all privileges on $(database).* to "$(user)"@"%"identified by "$(password)";
grant
all privileges on $(database).* to "$(user)"@"localhost"identified by "$(password)";
相关文章推荐
- Ubuntu安装mysql 不支持中文的问题
- Ubuntu 17.04下MySQL 5.7不支持中文解决办法
- Ubuntu15下mysql5.6.25不支持中文的解决办法
- Ubuntu 15.04下MySQL 5.6.25不支持中文解决办法
- Ubuntu15下mysql5.6.25不支持中文的解决办法
- ubuntu (16.04) server 英文原版 添加中文语言支持 消除java 程序、mysql 数据库不能处理中文的错误
- ubuntu下MySQL键值不支持中文解决办法
- Linux(centos7heUbuntu16.04)下设置MySQL支持中文
- Ubuntu 12.04 LTS,MySQL不支持中文,C语言从数据库中读取出来的中文显示???
- Linux(centos7heUbuntu16.04)下设置MySQL支持中文
- ubuntu下的mysql不支持中文,修改方法;
- Ubuntu更改MySQL字符集utf8,以支持中文
- ubuntu下qt4.8.6运行ui界面不显示中文,原因是qtconfig默认的字体不支持中文
- ubuntu下qt-creator不支持写中文注释
- Ubuntu14.04下MySQL 5.6的修改字符集编码为UTF8(彻底解决中文乱码问题)
- 在ubuntu的kde桌面版本中安装中文支持
- Linux--使 MySQL支持中文
- ubuntu安装中文支持
- 自己留存:mysql full text 支持中文的一个设定
- ubuntu MySQL客户端 Emma 6.0 中文乱码解决办法