Update sql_mysql.py

pull/644/head
Mr Chen 5 months ago
parent aee405f9e2
commit 798c52f23d
  1. 2
      plugins/data_query/sql_mysql.py

@ -84,7 +84,7 @@ class nosqlMySQL():
result['host'] = '127.0.0.1' result['host'] = '127.0.0.1'
result['username'] = 'root' result['username'] = 'root'
if sid in ['mysql', 'mysql-apt', 'mysql-yum']: if sid in ['mysql', 'mysql-apt', 'mysql-yum', 'mysql-community']:
my_cnf_path = "{}/{}/etc/my.cnf".format(mw.getServerDir(),sid) my_cnf_path = "{}/{}/etc/my.cnf".format(mw.getServerDir(),sid)
if not os.path.exists(my_cnf_path): if not os.path.exists(my_cnf_path):
return False return False

Loading…
Cancel
Save