Docs: add info how to cope with a protocol-related connection error using login_unix_socket argument (#420)

This commit is contained in:
Andrew Klychkov 2022-08-26 11:38:41 +02:00 committed by GitHub
parent 0a68bb270f
commit f1d63e3fc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 24 additions and 0 deletions

View file

@ -177,11 +177,14 @@ extends_documentation_fragment:
'''
EXAMPLES = r'''
# If you encounter the "Please explicitly state intended protocol" error,
# use the login_unix_socket argument
- name: Removes anonymous user account for localhost
community.mysql.mysql_user:
name: ''
host: localhost
state: absent
login_unix_socket: /run/mysqld/mysqld.sock
- name: Removes all anonymous user accounts
community.mysql.mysql_user: