如何找到mysql中的默认服务器字符集?

前端之家收集整理的这篇文章主要介绍了如何找到mysql中的默认服务器字符集?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

在FreeBSD 8.2上使用MySQL.如何找出默认的服务器字符集?是否有一些我可以运行的命令或我可以检查的文件

UPDATE

实际上我想知道如何找到默认服务器字符集和当前服务器字符集.

最佳答案
Server Character Set and Collation所述:

Initially,the server character set and collation depend on the options that you use when you start 07001. You can use 07002 for the character set. Along with it,you can add 07003 for the collation. If you don’t specify a character set,that is the same as saying 07004.

因此,默认服务器字符集是Windows-1252,MysqL调用latin1,除非您的MysqL副本已经使用其他一些默认编译.

手册继续说:

The current server character set and collation can be determined from the values of the 07005 and 07006 system variables. These variables can be changed at runtime.

因此,要发现当前使用的服务器字符集:

SHOW VARIABLES LIKE 'character_set_server'
原文链接:https://www.f2er.com/mysql/433771.html

猜你在找的MySQL相关文章