来源:自学PHP网 时间:2015-04-16 10:51 作者: 阅读:次
[导读] 安装mysql sudo apt-get install mysql-server查看mysql默认编码show variables like character% ; 43;-------------------------- 43;---------------------------- 43;| Variable_name...
安装mysql sudo apt-get install mysql-server 查看mysql默认编码 show variables like 'character%'; +--------------------------+----------------------------+ | Variable_name | Value | +--------------------------+----------------------------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | latin1 | | character_set_filesystem | binary | | character_set_results | utf8 | | character_set_server | latin1 | | character_set_system | utf8 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+ 修改mysql的默认编码 sudo gedit /etc/mysql/my.cnf 在[mysqld] # # * Basic Settings # 下面加上 character_set_server=utf8 修改完成后保存然后重启mysql sudo /etc/init.d/mysql restart |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com