👾 fix bug: dump database with utf8mb4 character set
This commit is contained in:
parent
e21ee7e123
commit
a934a37a88
|
|
@ -81,7 +81,7 @@ class Container:
|
|||
def __dump_db(self) -> bool:
|
||||
try:
|
||||
os.system(
|
||||
F"docker exec {self.db_container} mysqldump --password={self.__password} --all-databases > {self.__dump_file_path}")
|
||||
F"docker exec {self.db_container} mysqldump --default-character-set=utf8mb4 --password={self.__password} --all-databases > {self.__dump_file_path}")
|
||||
status = os.path.isfile(self.__dump_file_path)
|
||||
_print(F"Dump Nextcloud database: {self.SUCCESS if status else self.FAILED}")
|
||||
return status
|
||||
|
|
|
|||
Loading…
Reference in New Issue