bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/plugins/mysqlconf.py (about) 1 #!/usr/bin/env python 2 3 def get_user_password(sockfile): 4 """Given the path of a socket file, returns a tuple (user, password).""" 5 return ("root", file('/etc/mysql/root.pw').read().strip())