Setting UTF8 defaults for MySQL is as simple as adding a few lines to your configuration file (typically my.cnf): [mysqld] # Version 5.5.3 introduced "utf8mb4", which is recommended collation-server     = utf8mb4_general_ci # Replaces utf8_general_ci character-set-server = utf8mb4            # Replaces utf8

分类: web

标签: