Skip to content

Support both localhost and % host part for mysql users#3321

Open
eldering wants to merge 1 commit intomainfrom
mysql-also-localhost
Open

Support both localhost and % host part for mysql users#3321
eldering wants to merge 1 commit intomainfrom
mysql-also-localhost

Conversation

@eldering
Copy link
Member

@eldering eldering commented Jan 3, 2026

This reverts d6a82b2 to use localhost again, but also keeps the user with % host. MySQL seems to treat these as fully separate users and when connecting with a mysql client locally, the % host results in the error:

ERROR 1045 (28000): Access denied for user 'domjudge'@'localhost' (using password: YES)

Also remove a verbose print statement left over from debugging.

This reverts d6a82b2 to use localhost again,
but also keeps the user with `%` host. MySQL seems to treat these
as fully separate users and when connecting with a mysql client
locally, the `%` host results in the error:
```
ERROR 1045 (28000): Access denied for user 'domjudge'@'localhost' (using password: YES)
```

Also remove a verbose print statement left over from debugging.
@Kevinjil
Copy link
Contributor

Kevinjil commented Jan 4, 2026

'$domjudge_DBUSER'@'%' should allow access from localhost, unless there is a more specific user denying it access in your DB setup. Sometimes there is a ''@localhost user denying access which by the defined sorting takes priority.

What is in your users table?

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