From 48ee0a777f2e2616a77b5f2069a705f8f236eceb Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Mon, 11 May 2020 13:56:51 +0500 Subject: [PATCH] bug fix in fixMariaDB --- install/installCyberPanel.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 80019cbd1..7fca30c94 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -328,8 +328,11 @@ class InstallCyberPanel: conn = mariadb.connect(user='root', passwd=self.mysql_Root_password) cursor = conn.cursor() cursor.execute('set global innodb_file_per_table = on;') - cursor.execute('set global innodb_file_format = Barracuda;') - cursor.execute('set global innodb_large_prefix = on;') + try: + cursor.execute('set global innodb_file_format = Barracuda;') + cursor.execute('set global innodb_large_prefix = on;') + except BaseException as msg: + self.stdOut('%s. [ERROR:335]' % (str(msg))) cursor.close() conn.close()