From 55e225ec3b203df1165bcc508e2f8fda9c2992f7 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Thu, 3 Sep 2020 20:54:43 +0500 Subject: [PATCH] bug fix for mysql 10.5 --- install/installCyberPanel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index f3f2ada46..50f7f23d5 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -285,9 +285,9 @@ gpgcheck=1 if self.remotemysql == 'OFF': if self.distro == ubuntu: - passwordCMD = "use mysql;GRANT ALL PRIVILEGES ON . TO 'root'@'localhost' IDENTIFIED BY '%s';update user set password=PASSWORD('" % (InstallCyberPanel.mysql_Root_password) + InstallCyberPanel.mysql_Root_password + "') where User='root';UPDATE user SET plugin='' WHERE User='root';flush privileges;" + passwordCMD = "use mysql;GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '%s';UPDATE user SET plugin='' WHERE User='root';flush privileges;" % (InstallCyberPanel.mysql_Root_password) else: - passwordCMD = "use mysql;GRANT ALL PRIVILEGES ON . TO 'root'@'localhost' IDENTIFIED BY '%s';update user set password=PASSWORD('" % (InstallCyberPanel.mysql_Root_password) + InstallCyberPanel.mysql_Root_password + "') where User='root';flush privileges;" + passwordCMD = "use mysql;GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '%s';flush privileges;" % (InstallCyberPanel.mysql_Root_password) command = 'mysql -u root -e "' + passwordCMD + '"'