Skip to content

Commit 4a72cbc

Browse files
committed
Added a gotcha note to the README when trying to login from the CLI
This took me about an hour of re-provisioning to figure out that it was doing the install correctly, I was just trying to run mysql from the cli as the wrong user Signed-off-by: Jeroen v.d. Gulik <[email protected]>
1 parent 2c8c807 commit 4a72cbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Whether to force update the MySQL root user's password. By default, this role wi
3131

3232
> Note: If you get an error like `ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)` after a failed or interrupted playbook run, this usually means the root password wasn't originally updated to begin with. Try either removing the `.my.cnf` file inside the configured `mysql_user_home` or updating it and setting `password=''` (the insecure default password). Run the playbook again, with `mysql_root_password_update` set to `yes`, and the setup should complete.
3333
34+
> Note: If you get an error like `ERROR 1698 (28000): Access denied for user 'root'@'localhost' (using password: YES)` when trying to log in from the CLI you might need to run as root or sudoer.
35+
3436
mysql_enabled_on_startup: yes
3537

3638
Whether MySQL should be enabled on startup.

0 commit comments

Comments
 (0)