mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-03 12:44:25 -07:00
* add socket
option suggestion in documentation
This commit is contained in:
parent
3670b2adc6
commit
fec19e73d2
2 changed files with 6 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -134,3 +134,6 @@ dmypy.json
|
||||||
|
|
||||||
# MacOS
|
# MacOS
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# IntelliJ IDEA or PyCharm
|
||||||
|
.idea/
|
||||||
|
|
|
@ -81,6 +81,9 @@ requirements:
|
||||||
notes:
|
notes:
|
||||||
- "To avoid the C(Please explicitly state intended protocol) error, use the I(login_unix_socket) argument,
|
- "To avoid the C(Please explicitly state intended protocol) error, use the I(login_unix_socket) argument,
|
||||||
for example, C(login_unix_socket: /run/mysqld/mysqld.sock)."
|
for example, C(login_unix_socket: /run/mysqld/mysqld.sock)."
|
||||||
|
- Alternatively, to avoid using I(login_unix_socket) argument on each invocation you can specify the socket path
|
||||||
|
using the `socket` option in your MySQL config file (usually C(~/.my.cnf)) on the destination host, for
|
||||||
|
example C(socket=/var/lib/mysql/mysql.sock).
|
||||||
- Requires the PyMySQL (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) package installed on the remote host.
|
- Requires the PyMySQL (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) package installed on the remote host.
|
||||||
The Python package may be installed with apt-get install python-pymysql (Ubuntu; see M(ansible.builtin.apt)) or
|
The Python package may be installed with apt-get install python-pymysql (Ubuntu; see M(ansible.builtin.apt)) or
|
||||||
yum install python2-PyMySQL (RHEL/CentOS/Fedora; see M(ansible.builtin.yum)). You can also use dnf install python2-PyMySQL
|
yum install python2-PyMySQL (RHEL/CentOS/Fedora; see M(ansible.builtin.yum)). You can also use dnf install python2-PyMySQL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue