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

(cherry picked from commit f1d63e3fc8)

Co-authored-by: Andrew Klychkov <aklychko@redhat.com>
This commit is contained in:
patchback[bot] 2022-08-26 13:08:42 +02:00 committed by GitHub
parent 8968f51533
commit 4aa166ec13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 24 additions and 0 deletions

View file

@ -57,10 +57,13 @@ extends_documentation_fragment:
'''
EXAMPLES = r'''
# If you encounter the "Please explicitly state intended protocol" error,
# use the login_unix_socket argument
- name: Simple select query to acme db
community.mysql.mysql_query:
login_db: acme
query: SELECT * FROM orders
login_unix_socket: /run/mysqld/mysqld.sock
- name: Select query to db acme with positional arguments
community.mysql.mysql_query: