当前位置:网站首页>MySQL series - install MySQL 5.6.27 on Linux and solve common problems
MySQL series - install MySQL 5.6.27 on Linux and solve common problems
2022-04-23 05:20:00 【Cx_ Xuan】
Linux install Mysql 5.6.27
-------------------------------
Next is the question of use , When I was using it, I encountered DML operation failed , Then I found out linux The case requirements for letters in are very strict ,
So in windows There's no problem developing and using it under , however linux There will be errors in .
stay windows This should also be noted during development , Try to unify the format . Especially in the database , Tables in the database are lowercase ,
But we are window Visit in the environment mysql It does not require case .
---------------------- There is another important issue , That's when I query in Chinese , There will be no data ,
stay window Here you can get . I went to know the relevant knowledge again , Find me in linux Installation on mysql The character set is not set up when ,
In other words, the character set does not use utf8. Now let's modify :
Sign in mysql View use SHOW VARIABLES LIKE ‘character%’; Next character set , It is shown as follows :
+--------------------------+----------------------------------+
+--------------------------+----------------------------------+
| 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/local/mysql/share/charsets/ |
+--------------------------+----------------------------------+
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=utf8
port = 3306
socket = /var/lib/mysql/mysql.sock
character-set-server=utf8
no-auto-rehash
default-character-set=utf8
版权声明
本文为[Cx_ Xuan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220545385708.html
边栏推荐
- Summary of R & D technology
- PIP free export with path (@ file: / / /) notes
- Musk and twitter storm drama
- DevOps生命周期,你想知道的全都在这里了!
- 低代码和无代码的注意事项
- 我这位老程序员对时代危险和机遇的一点感悟?
- Kubectl command automatic replenishment
- Routing parameters
- Installing kuberneters using kubedm
- The 2021 IT industry project management survey report was released!
猜你喜欢
Redis的基本知识
Three 之 three.js (webgl)旋转属性函数的简单整理,以及基于此实现绕轴旋转的简单案例
Laravel routing job
What role do tools play in digital transformation?
Blender程序化地形制作
狼叔来找翻译人员了--plato--持续翻译中.....
MySQL foreign key constraint
Basic use of sqlyog
Modèle axé sur le domaine DDD (III) - gestion des transactions à l'aide de Saga
2021-11-01
随机推荐
MySQL circularly adds sequence numbers according to the values of a column
2021-11-01
引入精益管理方式,需要提前做到这九点
Study notes: unity customsrp-12-hdr
2021-11-08
On distributed lock
varnish入门
Laravel [view]
Logrus set log format and output function name
d.ts---更详细的知识还是需要看官网的介绍(声明文件章节)
Interview summary
[untitled] kimpei kdboxpro's cool running lantern coexists with beauty and strength
2021 年 25 大 DevOps 工具(下)
Domain driven model DDD (III) -- using saga to manage transactions
What are the reasons for the failure of digital transformation?
The source of anxiety of graduating college students looking for technology development jobs
改进DevSecOps框架的 5 大关键技术
[untitled]
Semi synchronous replication of MariaDB
Implementation of resnet-34 CNN with kears