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]
.split(')')[0].strip().replace('\'', ''))
try:
Log.debug(self, "dropping database {0}".format(ee_db_name))
Log.debug(self, "dropping database `{0}`".format(ee_db_name))
EEMysql.execute(self,
"drop database {0}".format(ee_db_name),
"drop database `{0}``".format(ee_db_name),
errormsg='Unable to drop database {0}'
.format(ee_db_name))
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,
"drop user {0}@{1}"
"drop user `{0}`@`{1}`"
.format(ee_db_user, ee_db_host))
EEMysql.execute(self,
"flush privileges")

Loading…
Cancel
Save