From 6d748de33a41f3939a7c22499b3978636e3fc9ab Mon Sep 17 00:00:00 2001 From: PeGaSuS Date: Sun, 5 Jun 2022 18:41:09 +0200 Subject: [PATCH 1/2] Update conf.sample.php Added an working PostgreSQL database configuration. --- cfg/conf.sample.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cfg/conf.sample.php b/cfg/conf.sample.php index e4586854..7220c874 100644 --- a/cfg/conf.sample.php +++ b/cfg/conf.sample.php @@ -194,3 +194,13 @@ dir = PATH "data" ;usr = null ;pwd = null ;opt[12] = true ; PDO::ATTR_PERSISTENT + +;[model] +; example of DB configuration for PostgreSQL +;class = Database +;[model_options] +;dsn = "pgsql:host=localhost;dbname=pastebin" +;tbl = "privatebin_" ; table prefix +;usr = "privatebin" +;pwd = "Z3r0P4ss" +;opt[12] = true ; PDO::ATTR_PERSISTENT From f8ff49509ba1f26138216d3f6cab90badd593274 Mon Sep 17 00:00:00 2001 From: PeGaSuS Date: Sun, 5 Jun 2022 18:42:54 +0200 Subject: [PATCH 2/2] Update conf.sample.php Fixed typo to match the mysql database name --- cfg/conf.sample.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfg/conf.sample.php b/cfg/conf.sample.php index 7220c874..3c7f4625 100644 --- a/cfg/conf.sample.php +++ b/cfg/conf.sample.php @@ -199,7 +199,7 @@ dir = PATH "data" ; example of DB configuration for PostgreSQL ;class = Database ;[model_options] -;dsn = "pgsql:host=localhost;dbname=pastebin" +;dsn = "pgsql:host=localhost;dbname=privatebin" ;tbl = "privatebin_" ; table prefix ;usr = "privatebin" ;pwd = "Z3r0P4ss"