mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-13 06:03:37 +02:00
2017-12-05 Fred Gleason <fredg@paravelsystems.com>
* Changed the default [mySQL] 'Engine=' directive value to 'MyISAM'.
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#
|
||||
# Convert a Rivendell database to use a different MySQL table engine
|
||||
#
|
||||
# This script require the 'mysql-connector-python'
|
||||
#
|
||||
# (C) Copyright 2017 Fred Gleason <fredg@paravelsystems.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@@ -41,6 +43,7 @@ def GetDbCredentials():
|
||||
|
||||
def OpenDb():
|
||||
creds=GetDbCredentials()
|
||||
print('P/W: '+creds[1])
|
||||
return mysql.connector.connect(user=creds[0],password=creds[1],
|
||||
host=creds[2],database=creds[3],buffered=True)
|
||||
|
||||
|
Reference in New Issue
Block a user