Skip to content

Commit d99eb63

Browse files
committed
Use 4-byte UTF-8 by default
1 parent 54778b6 commit d99eb63

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mysql/const.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ const (
183183
DEFAULT_IPV6_ADDR = "[::1]:3306"
184184
DEFAULT_USER = "root"
185185
DEFAULT_PASSWORD = ""
186-
DEFAULT_FLAVOR = "mysql"
187-
DEFAULT_CHARSET = "utf8"
188-
DEFAULT_COLLATION_ID uint8 = 33
189-
DEFAULT_COLLATION_NAME string = "utf8_general_ci"
186+
DEFAULT_FLAVOR = MySQLFlavor
187+
DEFAULT_CHARSET = "utf8mb4"
188+
DEFAULT_COLLATION_ID uint8 = 255
189+
DEFAULT_COLLATION_NAME string = "utf8mb4_0900_ai_ci"
190190
)
191191

192192
const (

0 commit comments

Comments
 (0)