Skip to content

Commit 5a6be9d

Browse files
committed
Fix phpmyadmin for remote mysql connection
1 parent 65f1ae4 commit 5a6be9d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ee/cli/plugins/stack.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,14 @@ def post_pref(self, apt_packages, packages):
11311131
.format(EEVariables.ee_webroot),
11321132
"$cfg[\'blowfish_secret\'] = \'\';","$cfg[\'blowfish_secret\'] = \'{0}\';"
11331133
.format(blowfish_key))
1134+
Log.debug(self, 'Setting HOST Server For Remote Mysql to '
1135+
'{0}22222/htdocs/db/pma/config.inc.php file '
1136+
.format(EEVariables.ee_webroot))
1137+
EEFileUtils.searchreplace(self,
1138+
'{0}22222/htdocs/db/pma/config.inc.php'
1139+
.format(EEVariables.ee_webroot),
1140+
"$cfg[\'Servers\'][$i][\'host\'] = \'localhost\';","$cfg[\'Servers\'][$i][\'host\'] = \'{0}\';"
1141+
.format(EEVariables.ee_mysql_host))
11341142
Log.debug(self, 'Setting Privileges of webroot permission to '
11351143
'{0}22222/htdocs/db/pma file '
11361144
.format(EEVariables.ee_webroot))

0 commit comments

Comments
 (0)