diff --git a/wo/cli/plugins/stack_services.py b/wo/cli/plugins/stack_services.py index 01b3188..a775565 100644 --- a/wo/cli/plugins/stack_services.py +++ b/wo/cli/plugins/stack_services.py @@ -78,8 +78,8 @@ class WOStackStatusController(CementBaseController): if pargs.mysql: if ((WOVar.wo_mysql_host == "localhost") or (WOVar.wo_mysql_host == "127.0.0.1")): - if os.path.exists('/etc/systemd/system/mysql.service'): - services = services + ['mysql'] + if os.path.exists('/lib/systemd/system/mariadb.service'): + services = services + ['mariadb'] else: Log.info(self, "MySQL is not installed") else: @@ -176,8 +176,8 @@ class WOStackStatusController(CementBaseController): if pargs.mysql: if ((WOVar.wo_mysql_host == "localhost") or (WOVar.wo_mysql_host == "127.0.0.1")): - if os.path.exists('/etc/systemd/system/mysql.service'): - services = services + ['mysql'] + if os.path.exists('/lib/systemd/system/mariadb.service'): + services = services + ['mariadb'] else: Log.info(self, "MySQL is not installed") else: @@ -275,8 +275,8 @@ class WOStackStatusController(CementBaseController): if pargs.mysql: if ((WOVar.wo_mysql_host == "localhost") or (WOVar.wo_mysql_host == "127.0.0.1")): - if os.path.exists('/etc/systemd/system/mysql.service'): - services = services + ['mysql'] + if os.path.exists('/lib/systemd/system/mariadb.service'): + services = services + ['mariadb'] else: Log.info(self, "MySQL is not installed") else: @@ -377,8 +377,8 @@ class WOStackStatusController(CementBaseController): if pargs.mysql: if ((WOVar.wo_mysql_host == "localhost") or (WOVar.wo_mysql_host == "127.0.0.1")): - if os.path.exists('/etc/systemd/system/mysql.service'): - services = services + ['mysql'] + if os.path.exists('/lib/systemd/system/mariadb.service'): + services = services + ['mariadb'] else: Log.info(self, "MySQL is not installed") else: @@ -487,7 +487,7 @@ class WOStackStatusController(CementBaseController): if pargs.mysql: if ((WOVar.wo_mysql_host == "localhost") or (WOVar.wo_mysql_host == "127.0.0.1")): - if os.path.exists('/etc/systemd/system/mysql.service'): + if os.path.exists('/lib/systemd/system/mariadb.service'): services = services + ['mysql'] else: Log.info(self, "MySQL is not installed") diff --git a/wo/cli/templates/my.mustache b/wo/cli/templates/my.mustache index 47568ad..15300b9 100644 --- a/wo/cli/templates/my.mustache +++ b/wo/cli/templates/my.mustache @@ -64,10 +64,10 @@ max_heap_table_size = {{tmp_table_size}}M # This replaces the startup script and checks MyISAM tables if needed # the first time they are touched. On error, make copy and try a repair. myisam_recover_options = BACKUP -key_buffer_size = 128M +key_buffer_size = 16M open-files-limit = 500000 table_open_cache = 16000 -myisam_sort_buffer_size = 512M +myisam_sort_buffer_size = 128M concurrent_insert = 2 read_buffer_size = 2M read_rnd_buffer_size = 1M