Skip to content

fix(env-setup): tolerate GitHub-runner MySQL root auth#29

Merged
AndriiTsok merged 1 commit intomainfrom
fix/mysql-install-auth
Apr 19, 2026
Merged

fix(env-setup): tolerate GitHub-runner MySQL root auth#29
AndriiTsok merged 1 commit intomainfrom
fix/mysql-install-auth

Conversation

@AndriiTsok
Copy link
Copy Markdown
Contributor

GitHub's ubuntu-latest pre-installs MySQL with root/root creds (not Debian's auth_socket). v1.7.0's install step assumed auth_socket. Probe both; fall back gracefully. Tag v1.7.1 after merge.

…uth_socket fallback)

GitHub's ubuntu-latest pre-installs MySQL 8 with root/root credentials,
not the Debian default of auth_socket. The install step was using
`sudo mysql` which matches a fresh apt install but fails with
`Access denied for user 'root'@'localhost' (using password: NO)` on
the pre-installed version.

Probe both auth modes — prefer root/root (GH-runner default), fall
back to `sudo mysql` (fresh apt install / auth_socket). Fail loudly
if neither works so operators on unusual images see a clear error
instead of cryptic access-denied messages further down the pipeline.
@AndriiTsok AndriiTsok merged commit bcb94d8 into main Apr 19, 2026
6 checks passed
@AndriiTsok AndriiTsok deleted the fix/mysql-install-auth branch April 19, 2026 05:14
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.

1 participant