|
|
|
@ -218,7 +218,7 @@ def main() -> int: |
|
|
|
|
print("input directory does not exist") |
|
|
|
|
return 1 |
|
|
|
|
|
|
|
|
|
connection = mysql.connect(host=args.host, port=args.port, user=args.user, password=args.password, db=args.db) |
|
|
|
|
connection = mysql.connect(host=args.host, port=args.port, user=args.user, password=args.password, db=args.db, charset='utf8', use_unicode=True) |
|
|
|
|
connection.autocommit(True) |
|
|
|
|
cursor = connection.cursor() |
|
|
|
|
cursor.execute("SET FOREIGN_KEY_CHECKS=0;") |
|
|
|
|