Skip to content

Simple Python module to get MySQL login information from a .mylogin.cnf file

License

Notifications You must be signed in to change notification settings

alorenzo175/mylogin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyLogin

This simple module is meant to easily get MySQL login information from .mylogin.cnf files created using mysql_config_editor. It has been tested with Python 2.7.6 and 3.4.

This module is released under the GNU GPL v2 license integrating modules from the MySQL Utilities package.

To use, import the mylogin module and call it's get_login_info function. The function requires a login_path arguement. host, port, and socket arguments are optional and will default to the default MySQL values if not given.

	
	import mylogin
	
	mylogin.get_login_info('myuser', host='localhost', port=3306)

About

Simple Python module to get MySQL login information from a .mylogin.cnf file

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages