Skip to content

Commit

Permalink
Merge pull request #644 from midoks/dev
Browse files Browse the repository at this point in the history
更改/合并mysql快速安装方式
  • Loading branch information
midoks authored Dec 17, 2024
2 parents c17df78 + 1973f6a commit 3acbad4
Show file tree
Hide file tree
Showing 81 changed files with 758 additions and 10,362 deletions.
6 changes: 5 additions & 1 deletion plugins/data_query/sql_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_options(self, sid=None):
result['host'] = '127.0.0.1'
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)
if not os.path.exists(my_cnf_path):
return False
Expand Down Expand Up @@ -132,6 +132,10 @@ def getServerList(self):
local_mysql_yum = "{}/mysql-yum/etc/my.cnf".format(mw.getServerDir())
if os.path.exists(local_mysql_yum):
data.append({'name':'本地服务器[yum]', 'val':'mysql-yum'})

local_mysql_yum = "{}/mysql-community/etc/my.cnf".format(mw.getServerDir())
if os.path.exists(local_mysql_yum):
data.append({'name':'本地服务器[community]', 'val':'mysql-community'})
return mw.returnData(True, 'ok', data)

@singleton
Expand Down
189 changes: 0 additions & 189 deletions plugins/mysql-apt/index_mysql_apt.py

This file was deleted.

70 changes: 0 additions & 70 deletions plugins/mysql-apt/install.sh

This file was deleted.

Loading

0 comments on commit 3acbad4

Please sign in to comment.