Use cheaper auth plugin and skip binlog for test MySQL containers
Switch the dockerized MySQL container to mysql_native_password (single challenge-response) instead of the default caching_sha2_password (extra RSA key exchange round-trip on non-TLS connections). Also disable binary logging since tests don't need replication. Both reduce per-connection overhead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -56,6 +56,10 @@ export async function startMysqlContainer(image: string): Promise<{
|
||||
.withExposedPorts(3306)
|
||||
.withEnvironment({ MYSQL_ROOT_PASSWORD: password })
|
||||
.withTmpFs({ '/var/lib/mysql': 'rw' })
|
||||
.withCommand([
|
||||
'--default-authentication-plugin=mysql_native_password',
|
||||
'--skip-log-bin',
|
||||
])
|
||||
.start();
|
||||
|
||||
const host = container.getHost();
|
||||
|
||||
Reference in New Issue
Block a user