Table of Contents
回复内容:
Home Backend Development PHP Tutorial 如图,mysql中为什么会有这么多编码?可以修改吗?分别是什么意思呀?

如图,mysql中为什么会有这么多编码?可以修改吗?分别是什么意思呀?

Jun 06, 2016 pm 08:17 PM
java mysql php

如图,mysql中为什么会有这么多编码?可以修改吗?分别是什么意思呀?

mysql的character_set_server 修改不了,从5.6版本之后就没有MySQLInstanceConfig.exe了?
通过SET character_set_server = utf8 ;这种方式,重启后就又变回了latin。
更改my.ini文件,也没有效果。

回复内容:

如图,mysql中为什么会有这么多编码?可以修改吗?分别是什么意思呀?

mysql的character_set_server 修改不了,从5.6版本之后就没有MySQLInstanceConfig.exe了?
通过SET character_set_server = utf8 ;这种方式,重启后就又变回了latin。
更改my.ini文件,也没有效果。

编码是为了适应语言的多样性。可以修改。含义如下
character_set_client:客户端发送过来文字的字符集
character_set_connection:用于连接的字符集
character_set_server:服务器的字符集
character_set_database:数据库字符集
character_set_results:发送给客户端的结果所使用的字符集

为什么有那么多编码?就像为什么有那么多国家,那么多语言,你的那么多编码可以理解为不同语言在计算机中表现的不同形式;

可以修改吗? 可以修改,至于选择那种就看你的业务需求是对于那个国家的语言。

分别什么意思? 【参考资料】

可以修改是什么意思呢。只能说可以在里面选一个。
编码多是正常的,因为有那么多国家,还有那么多电脑系统。
常用的记住就好,这块没什么好研究的。只要传输数据与显示不乱码就好

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How to fix mysql_native_password not loaded errors on MySQL 8.4 How to fix mysql_native_password not loaded errors on MySQL 8.4 Dec 09, 2024 am 11:42 AM

How to fix mysql_native_password not loaded errors on MySQL 8.4

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

How To Set Up Visual Studio Code (VS Code) for PHP Development

PHP Program to Count Vowels in a String PHP Program to Count Vowels in a String Feb 07, 2025 pm 12:12 PM

PHP Program to Count Vowels in a String

Break or return from Java 8 stream forEach? Break or return from Java 8 stream forEach? Feb 07, 2025 pm 12:09 PM

Break or return from Java 8 stream forEach?

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

How do you parse and process HTML/XML in PHP?

Java Made Simple: A Beginner's Guide to Programming Power Java Made Simple: A Beginner's Guide to Programming Power Oct 11, 2024 pm 06:30 PM

Java Made Simple: A Beginner's Guide to Programming Power

Create the Future: Java Programming for Absolute Beginners Create the Future: Java Programming for Absolute Beginners Oct 13, 2024 pm 01:32 PM

Create the Future: Java Programming for Absolute Beginners

See all articles