-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Bug]: Can't use MariaDB root user. #8846
Copy link
Copy link
Closed
Labels
Description
Module
MariaDB
Testcontainers version
1.19.8
Using the latest Testcontainers version?
Yes
Host OS
MacOS
Host Arch
ARM
Docker version
Client:
Version: 26.1.4
API version: 1.45
Go version: go1.21.11
Git commit: 5650f9b
Built: Wed Jun 5 11:26:02 2024
OS/Arch: darwin/arm64
Context: desktop-linux
Server: Docker Desktop 4.31.0 (153195)
Engine:
Version: 26.1.4
API version: 1.45 (minimum version 1.24)
Go version: go1.21.11
Git commit: de5c9cf
Built: Wed Jun 5 11:29:12 2024
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.6.33
GitCommit: d2d58213f83a351ca8f528a95fbd145f5654e957
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0What happened?
It is impossible to create MariaDB testContainer with root user as the code now is always trying to create new user.
Basically same issue as the one fixed here for MySQL.
https://github.com/testcontainers/testcontainers-java/pull/3953/files#diff-2568f90aa8a2109ff614414c5ef2b547f6bd7e8b8d4db9e81130d091b3e5d67c
Relevant log output
2024-07-04 13:30:58 ERROR 1396 (HY000) at line 29: Operation CREATE USER failed for 'root'@'%'Additional Information
No response
Reactions are currently unavailable