-
-
Notifications
You must be signed in to change notification settings - Fork 874
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
remove anonymous user in mysql_secure_installation fails with error 1045 #550
Labels
Comments
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! Please read this blog post to see the reasons why I mark issues as stale. |
Al-thi
added a commit
to Al-thi/ansible-role-mysql
that referenced
this issue
Jan 30, 2025
…ns on linux Since MariaDB 10.4 / MySQL 8.4, the root mysql user is configured to use `unix_socket` instead of password authentication. No password is privisioned at MariaDB installation time for the root user. Using socket authentication is recommended and considered a good security practice. cf. https://mariadb.com/kb/en/authentication-from-mariadb-10-4/ cf. https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html Fix geerlingguy#550 Fix geerlingguy#522 Fix geerlingguy#431 Fix geerlingguy#421 ...
Al-thi
added a commit
to Al-thi/ansible-role-mysql
that referenced
this issue
Jan 30, 2025
…ns on linux Since MariaDB 10.4 / MySQL 8.4, the root mysql user is configured to use `unix_socket` instead of password authentication. No password is privisioned at MariaDB installation time for the root user. Using socket authentication is recommended and considered a good security practice. cf. https://mariadb.com/kb/en/authentication-from-mariadb-10-4/ cf. https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html Fix geerlingguy#550 Fix geerlingguy#522 Fix geerlingguy#431 Fix geerlingguy#421 ...
Al-thi
added a commit
to Al-thi/ansible-role-mysql
that referenced
this issue
Jan 30, 2025
…ns on linux Since MariaDB 10.4 / MySQL 8.4, the root mysql user is configured to use `unix_socket` instead of password authentication. No password is privisioned at MariaDB installation time for the root user. Using socket authentication is recommended and considered a good security practice. cf. https://mariadb.com/kb/en/authentication-from-mariadb-10-4/ cf. https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html Fix geerlingguy#550 Fix geerlingguy#522 Fix geerlingguy#431 Fix geerlingguy#421 ...
Al-thi
added a commit
to Al-thi/ansible-role-mysql
that referenced
this issue
Jan 30, 2025
…ns on linux Since MariaDB 10.4 / MySQL 8.4, the root mysql user is configured to use `unix_socket` instead of password authentication. No password is privisioned at MariaDB installation time for the root user. Using socket authentication is recommended and considered a good security practice. cf. https://mariadb.com/kb/en/authentication-from-mariadb-10-4/ cf. https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html Fix geerlingguy#550 Fix geerlingguy#522 Fix geerlingguy#431 Fix geerlingguy#421 ...
Al-thi
added a commit
to Al-thi/ansible-role-mysql
that referenced
this issue
Jan 30, 2025
…ns on linux Since MariaDB 10.4 / MySQL 8.4, the root mysql user is configured to use `unix_socket` instead of password authentication. No password is privisioned at MariaDB installation time for the root user. Using socket authentication is recommended and considered a good security practice. cf. https://mariadb.com/kb/en/authentication-from-mariadb-10-4/ cf. https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html Fix geerlingguy#550 Fix geerlingguy#522 Fix geerlingguy#431 Fix geerlingguy#421 ...
Al-thi
added a commit
to Al-thi/ansible-role-mysql
that referenced
this issue
Jan 30, 2025
…ns on linux Since MariaDB 10.4 / MySQL 8.4, the root mysql user is configured to use `unix_socket` instead of password authentication. No password is privisioned at MariaDB installation time for the root user. Using socket authentication is recommended and considered a good security practice. cf. https://mariadb.com/kb/en/authentication-from-mariadb-10-4/ cf. https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html Fix geerlingguy#550 Fix geerlingguy#522 Fix geerlingguy#431 Fix geerlingguy#421 ...
Al-thi
added a commit
to Al-thi/ansible-role-mysql
that referenced
this issue
Jan 30, 2025
…ns on linux Since MariaDB 10.4 / MySQL 8.4, the root mysql user is configured to use `unix_socket` instead of password authentication. No password is privisioned at MariaDB installation time for the root user. Using socket authentication is recommended and considered a good security practice. cf. https://mariadb.com/kb/en/authentication-from-mariadb-10-4/ cf. https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html Fix geerlingguy#550 Fix geerlingguy#522 Fix geerlingguy#431 Fix geerlingguy#421 ...
Al-thi
added a commit
to Al-thi/ansible-role-mysql
that referenced
this issue
Jan 31, 2025
…ns on linux Since MariaDB 10.4 / MySQL 8.4, the root mysql user is configured to use `unix_socket` instead of password authentication. No password is privisioned at MariaDB installation time for the root user. Using socket authentication is recommended and considered a good security practice. cf. https://mariadb.com/kb/en/authentication-from-mariadb-10-4/ cf. https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html Fix geerlingguy#550 Fix geerlingguy#522 Fix geerlingguy#431 Fix geerlingguy#421
Al-thi
added a commit
to Al-thi/ansible-role-mysql
that referenced
this issue
Jan 31, 2025
…l versions Since MariaDB 10.4 / MySQL 8.4, the root mysql user is configured to use `unix_socket` instead of password authentication. No password is privisioned at MariaDB installation time for the root user. Using socket authentication is recommended and considered a good security practice. cf. https://mariadb.com/kb/en/authentication-from-mariadb-10-4/ cf. https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html Fix geerlingguy#550 Fix geerlingguy#522 Fix geerlingguy#431 Fix geerlingguy#421
Al-thi
added a commit
to Al-thi/ansible-role-mysql
that referenced
this issue
Jan 31, 2025
…l versions Since MariaDB 10.4 / MySQL 8.4, the root mysql user is configured to use `unix_socket` instead of password authentication. No password is privisioned at MariaDB installation time for the root user. Using socket authentication is recommended and considered a good security practice. cf. https://mariadb.com/kb/en/authentication-from-mariadb-10-4/ cf. https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html Fix geerlingguy#550 Fix geerlingguy#522 Fix geerlingguy#431 Fix geerlingguy#421
Al-thi
added a commit
to Al-thi/ansible-role-mysql
that referenced
this issue
Jan 31, 2025
…l versions Since MariaDB 10.4 / MySQL 8.4, the root mysql user is configured to use `unix_socket` instead of password authentication. No password is privisioned at MariaDB installation time for the root user. Using socket authentication is recommended and considered a good security practice. cf. https://mariadb.com/kb/en/authentication-from-mariadb-10-4/ cf. https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html Fix geerlingguy#550 Fix geerlingguy#522 Fix geerlingguy#431 Fix geerlingguy#421 Signed-off-by: Alexis Thietard <[email protected]>
Al-thi
added a commit
to Al-thi/ansible-role-mysql
that referenced
this issue
Jan 31, 2025
…l versions Since MariaDB 10.4 / MySQL 8.4, the root mysql user is configured to use `unix_socket` instead of password authentication. No password is privisioned at MariaDB installation time for the root user. Using socket authentication is recommended and considered a good security practice. cf. https://mariadb.com/kb/en/authentication-from-mariadb-10-4/ cf. https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html Fix geerlingguy#550 Fix geerlingguy#522 Fix geerlingguy#431 Fix geerlingguy#421 Signed-off-by: Alexis Thietard <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's the output of mysql_secure_installation:
[root@webserver~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
You already have a root password set, so you can safely answer 'n'.
Change the root password? [Y/n]
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n]
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
... Failed!
Cleaning up...
I did not set any variables in my playbook regarding mysql. Playbook had been running several times without errors. I didn't have this problem, when installing mysql/mariadb without ansible/awx.
Any help?
The text was updated successfully, but these errors were encountered: