Bug #74142 Support for Login Path in MySQL Connector Python
Submitted: 29 Sep 2014 18:23 Modified: 16 Feb 2023 16:39
Reporter: Kevin Heaps Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / Python Severity:S4 (Feature request)
Version: OS:Any
Assigned to: Assigned Account CPU Architecture:Any
Tags: Login Path

[29 Sep 2014 18:23] Kevin Heaps
Description:
Now that the connector supports config files, it would be great if it also supported the encrypted passwords in the files generated my mysql_config_editor.

How to repeat:
Specifying mysql.connector.connect(option_files="~/.mylogin.cnf") raises UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 30: invalid continuation byte
[16 Feb 2023 16:39] Nuno Mariz
Posted by developer:
 
Thanks for the enhancement request.
But there are other ways far more secure way of storing application credentials and sensitive data, by using a dedicated secrets manager with keyring or going without passwords using options such as kerberos, x509, or fido.