-
Notifications
You must be signed in to change notification settings - Fork 92
Add mysqlclient as additional library supported in documentation #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
mysqlclient
as additional library supported in documentation
@imjoseangel hi, thanks for reporting this! |
Thanks @Andersson007 For Mac and Linux: When using TASK [Get MySQL version with non-default credentials] *************************************************************
Thursday 05 November 2020 11:57:28 +0100 (0:00:00.107) 0:00:00.107 *****
fatal: [localhost]: FAILED! => changed=false
msg: 'unable to connect to database, check login_user and login_password are correct or /Users/imjoseangel/.my.cnf has the credentials. Exception message: (2003, "Can''t connect to MySQL server on ''192.168.0.1'' ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for ''192.168.0.1''. (_ssl.c:1091))")' When using TASK [Get MySQL version with non-default credentials] *************************************************************
Thursday 05 November 2020 12:03:19 +0100 (0:00:00.105) 0:00:00.105 *****
ok: [localhost] => changed=false
version:
major: x
minor: x
release: x What I mean is that adding What do you think? |
@imjoseangel do you mean adding https://pypi.org/project/mysqlclient/ as the third connector or this can be used instead of MySQLdb transparantly and we just need to add a note to the documentation that people can install and use it instead? |
@Andersson007 I was thinking on adding as the third connector but currently is the best option also for Python2. Thinking in your question I would change What do you think? |
@imjoseangel if we replace it, won't this break systems where users have only MySQdb installed? |
https://pypi.org/project/mysqlclient/ refers to MySQLdb documentation as i can see. Do we need to change the source code or we can just add a not that people can install |
Is just a change in the documentation, we don't need to change the source to work with the three libraries. |
@imjoseangel that's ok:) i could add the note tomorrow (or maybe you want to do it yourself?) |
@Andersson007 Is it here isn't it? Could you send me the meeting details? Thank you! |
@imjoseangel i'm afraid we don't have regular meetings here:) |
Could you please specify what do you mean with adding the note? Do you mean create a PR for the documentation? If so, let me do this afternoon. Thank you! |
@imjoseangel ok, thanks! i'd suggest adding something like this
to
just a suggestion, hope it'll help |
SUMMARY
All the modules specify
PyMySQL
orMySQLdb
options but to manage a multiplatform (Linux and Mac) environment, the best working option ismysqlclient
. Recommended to add it as an option.ISSUE TYPE
COMPONENT NAME
mysql_db
mysql_info
mysql_query
mysql_replication
mysql_user
mysql_variables
ANSIBLE VERSION
The text was updated successfully, but these errors were encountered: