Skip to content

Fix external DB connectivity by using USE_EXTERNAL_DB variable#498

Merged
yaronkoren merged 2 commits intomasterfrom
fix-external-db-master
Jun 2, 2025
Merged

Fix external DB connectivity by using USE_EXTERNAL_DB variable#498
yaronkoren merged 2 commits intomasterfrom
fix-external-db-master

Conversation

@sanjay-thiyagarajan
Copy link
Collaborator

No description provided.

@github-actions
Copy link

github-actions bot commented Jun 1, 2025

🐳 The image based on 7bdfd619 commit has been built with 1.39.11-20250601-498 tag as ghcr.io/canastawiki/canasta:1.39.11-20250601-498

@yaronkoren
Copy link
Member

This looks fine - but could you explain what was going wrong with the old code?

@sanjay-thiyagarajan
Copy link
Collaborator Author

@sanjay-thiyagarajan
Copy link
Collaborator Author

-P should be added while testing the connection on a non-standard port

@yaronkoren
Copy link
Member

Sorry, I don't understand - what line are you talking about? And where is the "-P" in the code?

@sanjay-thiyagarajan
Copy link
Collaborator Author

mysql=( mysql -h "$WG_DB_SERVER" -u"$WG_DB_USER" -p"$WG_DB_PASSWORD" )

-p is for password and -P is for port. It is not setting -P at all and just keeps the port in the host - hence, the command never gives a positive output for external DB

@yaronkoren
Copy link
Member

Okay, thanks, I think I get it. Mostly I just wanted a clear explanation here, for anyone looking at this in the future.

@yaronkoren yaronkoren merged commit 4070d46 into master Jun 2, 2025
2 checks passed
@yaronkoren yaronkoren deleted the fix-external-db-master branch July 23, 2025 21:37
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