如何找到mysql数据库的目录表示?

时间:2013-01-10 20:07:29

标签: mysql database character-encoding

我试着找到与mysql相关的这个问题的答案: 说一个数据库hello-there然后它的文件夹表示是:hello@002dthere 正如mysql帮助所说:http://dev.mysql.com/doc/refman/5.5/en/identifier-mapping.html

All nonletter characters except underscore (_), as well as letters from alphabets
that do not have uppercase/lowercase mapping (such as Hebrew) are encoded using
hexadecimal representation using lowercase letters for hex digits a..f:

0x003F -> @003f
0xFFFF -> @ffff

The hexadecimal values correspond to character values in the ucs2 double-byte 
character set. 

有没有办法找到在mysql客户端发布的相应文件夹名称     显示数据库; 有人可能会争辩:分析数据库名称并将任何非字母数字转换为ucs2,但这是性能杀手:

mysql> select hex('-');
+----------+
| hex('-') |
+----------+
| 2D       |
+----------+

...谢谢

0 个答案:

没有答案