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

(cherry picked from commit f1d63e3fc8)
This commit is contained in:
Andrew Klychkov 2022-08-26 13:41:06 +02:00 committed by GitHub
parent 108c4ae729
commit c199000eee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 0 deletions

View file

@ -183,10 +183,13 @@ extends_documentation_fragment:
'''
EXAMPLES = r'''
# If you encounter the "Please explicitly state intended protocol" error,
# use the login_unix_socket argument
- name: Create a new database with name 'bobdata'
community.mysql.mysql_db:
name: bobdata
state: present
login_unix_socket: /run/mysqld/mysqld.sock
- name: Create new databases with names 'foo' and 'bar'
community.mysql.mysql_db: