mac php 中文乱码问题,mysql,macbook_mac 中 mysql 中文乱码问题,mysql,macbook,中文乱码 - phpStudy...

mac 中 mysql 中文乱码问题

问题如下:

mac 系统版本 10.12.2

mysql 数据版本 5.6.35-macos10.12-x86_64

现在已经在/etc/my.cnf 中添加utf8编码

# For advice on how to change settings please see

# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html

# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the

# *** default location during install, and will be replaced if you

# *** upgrade to a newer version of MySQL.

[mysqld] character-set-server=utf8

# Remove leading # and set to the amount of RAM for the most important data

# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.

# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging

# changes to the binary log between backups.

# log_bin

# These are commonly set, remove the # and set as required.

# basedir = .....

# datadir = .....

# port = .....

# server_id = .....

# socket = .....

[client] default-character-set=utf8

终端查询字符编码如下:

终端查询中已经设置成为utf8 编码

navicat 中查询

终端查询带有中文的数据表

IDE 中 java 查询数据表

现在问题是 能在navicat 中能够查询中文。 在mac终端和java中查询都是乱码。 ,求解决。。。。。。。

相关阅读:

ubuntu复制文件到其他盘,提示我目标是只读的

求助~~~~~判断手机是否连接上 navigator.connection.type;

如何将一个网站的首页下载下来?

打包phar文件过大的问题。

docker nginx 多域名配置问题

vue 单页面应用 导航

ansible的yum模块state选项的意思

gulp怎么处理开发和生产环境

antd使用tsx编写的组件怎样打包?

原生 js 如何追加 html

action请求接口中断

find 命令使用posix-egrep, 不好使

字符串'00'和'0'有什么区别

html 一条水平线两个不同的颜色怎么实现?

怎么控制style的方法完成react的搜索功能

即时执行匿名函数调用全局作用域函数报错

如何使用Qt实现网易云音乐那种界面?

SDL 使用SDL_image中的IMG_load加载图片,图片目录放在哪里啊???急!

适合移动端显示的PC端文本编辑器

点击button后开启分线程网络请求

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值