我正在尝试将我的数据库转换为utf8mb4
遵循本指南。我已经设定:
[client]
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4
[mysqld]
init-connect='SET NAMES utf8mb4'
collation_server=utf8mb4_unicode_ci
character_set_server=utf8mb4
skip-character-set-client-handshake
但价值character_set_client
并character_set_results
仍然不会改变utf8mb4。
mysql> SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%';
+--------------------------+--------------------+
| Variable_name | Value |
+--------------------------+--------------------+
| character_set_client | utf8 |
| character_set_connection | utf8mb4 |
| character_set_database | utf8mb4 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8mb4 |
| character_set_system | utf8 |
| collation_connection | utf8mb4_unicode_ci |
| collation_database | utf8mb4_unicode_ci |
| collation_server | utf8mb4_unicode_ci |
+--------------------------+--------------------+
我究竟做错了什么?如何将这些值设置为utf8mb4?
\xampp\mysql\bin\my.ini
。我无法运行mysqld --help --verbose 2> /dev/null | grep -A1 'Default options'
-因为它出现以下错误:'grep' is not recognized as an internal or external command, operable program or batch file.
我是这个东西的新手,所以我可能做错了什么。