Browse Source

MySQL query cache default on

bugfixes
gau1991 10 years ago
parent
commit
f59482b057
  1. 6
      ee/cli/plugins/stack.py

6
ee/cli/plugins/stack.py

@ -514,7 +514,8 @@ class EEStackController(CementBaseController):
# config.write(configfile) # config.write(configfile)
if not os.path.isfile("/etc/mysql/my.cnf"): if not os.path.isfile("/etc/mysql/my.cnf"):
config = ("[mysqld]\nwait_timeout = 30\n" config = ("[mysqld]\nwait_timeout = 30\n"
"interactive_timeout=60\nperformance_schema = 0") "interactive_timeout=60\nperformance_schema = 0"
"\nquery_cache_type = 1")
config_file = open("/etc/mysql/my.cnf", config_file = open("/etc/mysql/my.cnf",
encoding='utf-8', mode='w') encoding='utf-8', mode='w')
config_file.write(config) config_file.write(config)
@ -523,7 +524,8 @@ class EEStackController(CementBaseController):
EEShellExec.cmd_exec(self, "sed -i \"/#max_connections/a " EEShellExec.cmd_exec(self, "sed -i \"/#max_connections/a "
"wait_timeout = 30 \\n" "wait_timeout = 30 \\n"
"interactive_timeout = 60 \\n" "interactive_timeout = 60 \\n"
"performance_schema = 0\" " "performance_schema = 0\\n"
"query_cache_type = 1 \" "
"/etc/mysql/my.cnf") "/etc/mysql/my.cnf")
EEGit.add(self, ["/etc/mysql"], msg="Adding MySQL into Git") EEGit.add(self, ["/etc/mysql"], msg="Adding MySQL into Git")

Loading…
Cancel
Save