ansible-mysql-query icon indicating copy to clipboard operation
ansible-mysql-query copied to clipboard

parse ~/.my.cnf

Open elmarx opened this issue 9 years ago • 3 comments

Currently login_user, login_password et al are mandatory, parse ~/.my.cnf just like https://github.com/ansible/ansible-modules-core/blob/devel/database/mysql/mysql_db.py

elmarx avatar Sep 13 '15 19:09 elmarx

Use MySQLdb.connect parameter as done in the fork: https://github.com/ulrikkold/ansible-mysql-query/commit/46f6c11723277187abc02e8b018ba2920d95a22f

Or, even better, use the ansible util-function mysql_connect like the core mysql_db does after importing.

elmarx avatar Jul 24 '16 13:07 elmarx

I would really appreciate this feature.

scuben avatar Apr 07 '19 14:04 scuben

Hey scuben, thanks for your interest and your input. I will try to allocate some time to implement this feature.

elmarx avatar May 06 '19 16:05 elmarx