Skip to content

Conversation

@IrAlfred
Copy link
Member

@IrAlfred IrAlfred commented Dec 3, 2025

🍰 Pullrequest

This PR fixes Access denied for user 'cypht'@'<ip>' errors when running Cypht with MySQL/MariaDB in Docker by ensuring the application DB user is created with the correct host permissions for container networking.

Issue

Related to #1020

@IrAlfred IrAlfred force-pushed the fix-docker-db-networking-mysql branch 2 times, most recently from 9074756 to 71e1af2 Compare December 3, 2025 07:55
@IrAlfred IrAlfred force-pushed the fix-docker-db-networking-mysql branch from 71e1af2 to 390ea3c Compare December 3, 2025 08:01
@IrAlfred IrAlfred requested a review from kroky December 3, 2025 16:00
@kroky
Copy link
Member

kroky commented Dec 4, 2025

see https://github.com/MariaDB/mariadb-docker/blob/5ad00a82b5bb2705825c7afb670f6547b1bed316/10.11/docker-entrypoint.sh#L442

Passing MARIADB_USER and MARIADB_PASSOWRD + MARIADB_DATABASE should give enough permissions for the user to access the database regardless of the docker container. @% host is usually enough. If we can use something from the official dockerfile or entrypoint, let's use it instead of creating our own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants