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

MYSQL ensureusers password doesn't work, unable to login to mysql #1251

Closed
CUexter opened this issue Jun 5, 2024 · 1 comment · Fixed by #1345
Closed

MYSQL ensureusers password doesn't work, unable to login to mysql #1251

CUexter opened this issue Jun 5, 2024 · 1 comment · Fixed by #1345
Labels
bug Something isn't working

Comments

@CUexter
Copy link

CUexter commented Jun 5, 2024

Describe the bug
Can't login into mysql with password

To reproduce

# devenv.nix

{ pkgs, lib, config, inputs, ... }:

{
  
  services.mysql = {
    enable = true;
    initialDatabases = [
      { name = "database"; }
    ];
    ensureUsers = [
      {
        name = "root";
        password = "rtpw1111";
        ensurePermissions = {
          "*.*" = "ALL PRIVILEGES";
        };
      }
    ];

  };
}

when i try to use mariadb -u root -p to login with rtpw1111
it returns Access denied for user 'root'@'localhost' (using password: YES)

Version
1.0.5

@CUexter CUexter added the bug Something isn't working label Jun 5, 2024
@YSawc
Copy link

YSawc commented Jul 26, 2024

I encountered same bug within version 1.0.8.

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

Successfully merging a pull request may close this issue.

2 participants