added utf8 support & added confdump.venv to gitignore

trunk
autonomic 11 months ago
parent a22702be1f
commit 5928295f37
  1. 1
      .gitignore
  2. 2
      confdump.py

1
.gitignore vendored

@ -3,6 +3,7 @@
# security leaks?;
.env
mydata
confdump.venv
# Byte-compiled / optimized / DLL files
__pycache__/

@ -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;")

Loading…
Cancel
Save