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

(cherry picked from commit f1d63e3fc8)
This commit is contained in:
Andrew Klychkov 2022-08-26 11:38:41 +02:00
commit 9e0ee4ed98
7 changed files with 21 additions and 0 deletions

View file

@ -76,9 +76,12 @@ EXAMPLES = r'''
# Display all info from databases group except settings:
# ansible databases -m mysql_info -a 'filter=!settings'
# If you encounter the "Please explicitly state intended protocol" error,
# use the login_unix_socket argument
- name: Collect all possible information using passwordless root access
community.mysql.mysql_info:
login_user: root
login_unix_socket: /run/mysqld/mysqld.sock
- name: Get MySQL version with non-default credentials
community.mysql.mysql_info: