Browse Source

Fixed #442 Site create issue

bugfixes
harshadyeola 10 years ago
parent
commit
8f129924bf
  1. 8
      ee/cli/plugins/site.py

8
ee/cli/plugins/site.py

@ -1100,15 +1100,15 @@ class EESiteDeleteController(CementBaseController):
'DB_HOST').split(',')[1] 'DB_HOST').split(',')[1]
.split(')')[0].strip().replace('\'', '')) .split(')')[0].strip().replace('\'', ''))
try: try:
Log.debug(self, "dropping database {0}".format(ee_db_name)) Log.debug(self, "dropping database `{0}`".format(ee_db_name))
EEMysql.execute(self, EEMysql.execute(self,
"drop database {0}".format(ee_db_name), "drop database `{0}``".format(ee_db_name),
errormsg='Unable to drop database {0}' errormsg='Unable to drop database {0}'
.format(ee_db_name)) .format(ee_db_name))
if ee_db_user != 'root': if ee_db_user != 'root':
Log.debug(self, "dropping user {0}".format(ee_db_user)) Log.debug(self, "dropping user `{0}`".format(ee_db_user))
EEMysql.execute(self, EEMysql.execute(self,
"drop user {0}@{1}" "drop user `{0}`@`{1}`"
.format(ee_db_user, ee_db_host)) .format(ee_db_user, ee_db_host))
EEMysql.execute(self, EEMysql.execute(self,
"flush privileges") "flush privileges")

Loading…
Cancel
Save