Skip to content

Not default connection collation #265

@sizov82

Description

@sizov82

How to set not default collation for connection?
I`m using utf8mb4 charset and utf8mb4_unicode_ci,
but i cant set collation. Default collation is utf8mb4_general_ci
I cant disable builtin "SET NAMES utf8mb4" and cant override in $dumpSettings['init_commands'], because the builtin commands come after the user commands.

If i add "SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci" to 'init_commands' i get it:
$dumpSettings['init_commands'] dump
array (3) [
0 => string (44) "SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci"
1 => string (17) "SET NAMES utf8mb4"
2 => string (22) "SET TIME_ZONE='+00:00'"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions