新增:Linux Docker 部署与自动回收、备份及容量监测
This commit is contained in:
+2
-1
@@ -145,7 +145,8 @@ def start_mysql():
|
||||
'--datadir=' + str(data), '--port=' + str(value['mysqlPort']), '--bind-address=127.0.0.1',
|
||||
'--socket=' + str(RUNTIME / 'mysql.sock'), '--pid-file=' + str(RUNTIME / 'mysql-server.pid'),
|
||||
'--log-error=' + str(OUTPUT / 'logs/mysql-server.log'), '--mysqlx=OFF',
|
||||
'--lower-case-table-names=2', '--max-connections=60', '--innodb-buffer-pool-size=256M'])
|
||||
'--lower-case-table-names=2', '--max-connections=60', '--innodb-buffer-pool-size=256M',
|
||||
*(['--skip-log-bin'] if value.get('binaryLogEnabled', True) is False else [])])
|
||||
client_config = RUNTIME / 'mysql-root.cnf'
|
||||
save_private(client_config, '[client]\nuser=root\npassword=' + value['rootPassword'] + '\nsocket=' + str(RUNTIME / 'mysql.sock') + '\n')
|
||||
for _ in range(120):
|
||||
|
||||
Reference in New Issue
Block a user