aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/irdb.py6
-rw-r--r--scripts/test-sql.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/scripts/irdb.py b/scripts/irdb.py
index 0df5cc2d..d33b1cf7 100755
--- a/scripts/irdb.py
+++ b/scripts/irdb.py
@@ -82,9 +82,9 @@ def handler(query, path):
cfg = rpki.config.parser("irbe.conf")
section = "irdb"
-db = MySQLdb.connect(user = cfg.get(section, "username"),
- db = cfg.get(section, "database"),
- passwd = cfg.get(section, "password"))
+db = MySQLdb.connect(user = cfg.get(section, "sql-username"),
+ db = cfg.get(section, "sql-database"),
+ passwd = cfg.get(section, "sql-password"))
cur = db.cursor()
diff --git a/scripts/test-sql.py b/scripts/test-sql.py
index 9d13410f..6357ed42 100644
--- a/scripts/test-sql.py
+++ b/scripts/test-sql.py
@@ -8,9 +8,9 @@ def test(filename, section):
cfg = rpki.config.parser(filename)
- db = MySQLdb.connect(user = cfg.get(section, "username"),
- db = cfg.get(section, "database"),
- passwd = cfg.get(section, "password"))
+ db = MySQLdb.connect(user = cfg.get(section, "sql-username"),
+ db = cfg.get(section, "sql-database"),
+ passwd = cfg.get(section, "sql-password"))
cur = db.cursor()