Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] set MySQL visibility will not use VISIBILITY_MYSQL_USER/VISIBILITY_MYSQL_PWD #236

Open
onesaltedseafish opened this issue Aug 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@onesaltedseafish
Copy link

What are you really trying to do?

I'm trying to set a seperate user and password for visibility, but I got:

temporal              | 2024-08-11T06:38:32.751Z        ERROR   Unable to create SQL database.  {"error": "Error 1044: Access denied for user 'temporal'@'%' to database 'temporal_visibility'", "logging-call-at": "handler.go:94"}

Describe the bug

I find the visibility.sql.user will not be used when init the temporal_visibility database. Can see the process in https://github.com/temporalio/docker-builds/blob/main/docker/auto-setup.sh#L172C1-L172C19 .

image

Minimal Reproduction

Environment/Versions

  • OS and processor: [x86 Linux]
  • Temporal Version: [1.24.2]
  • Are you using Docker or Kubernetes or building Temporal from source? Docker

Additional context

Just use a different user for database temporal and temporal_visibility.

@onesaltedseafish onesaltedseafish added the bug Something isn't working label Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant