bug fix in fixMariaDB

This commit is contained in:
Usman Nasir
2020-05-11 13:56:51 +05:00
parent 67944ab90b
commit 48ee0a777f

View File

@@ -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()