Skip to content

Commit cbe7943

Browse files
committed
REMOVED: Remove --column-statistics=0 at MySQL 8.0 or later
1 parent 00894e7 commit cbe7943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def export(self, export_path_name="unspecified", export_type='sql', tablename="U
198198
password_exist = "-p{pwd}".format(pwd=self.password)
199199
else:
200200
password_exist = ""
201-
ps = subprocess.Popen("mysqldump --column-statistics=0 -u {user} {pwd} -h {host} {database_name} > {output}".format(pwd=password_exist, user=self.user,host=self.host, database_name=self.database,output=filename), shell=True)
201+
ps = subprocess.Popen("mysqldump -u {user} {pwd} -h {host} {database_name} > {output}".format(pwd=password_exist, user=self.user,host=self.host, database_name=self.database,output=filename), shell=True)
202202
ps.communicate()
203203
if ps.returncode == 0:
204204
print("Sucessfully make the export file: %s" % filename)

0 commit comments

Comments
 (0)