2024-07-01 01:24:28 -04:00
|
|
|
[options]
|
|
|
|
database="sqlite" #sqlite or mysql
|
2024-06-30 23:28:04 -04:00
|
|
|
|
2024-07-01 02:59:14 -04:00
|
|
|
# Connect to your existing mysql database, we will create a single "scores" table with /db/ddd_db.sql
|
2024-07-01 00:44:23 -04:00
|
|
|
[mysql]
|
|
|
|
mysqlconnect_path="/var/config/mysqlconnect.php"
|
|
|
|
host="localhost"
|
2024-07-01 02:59:14 -04:00
|
|
|
username="ddd_db_admin"
|
|
|
|
database="ddd_db"
|
|
|
|
password="dbd_db_password"
|
2024-07-01 01:24:28 -04:00
|
|
|
|
|
|
|
[sqlite]
|
2024-07-01 02:59:14 -04:00
|
|
|
sqlite_password="CHANGE_ME!" #This is used to manage the sqlite database from a ui at /update_db.php
|
2024-07-01 00:44:23 -04:00
|
|
|
|
2024-07-01 01:24:28 -04:00
|
|
|
# To use this file, run setup.sh with bash
|
|
|
|
# or you can use
|
|
|
|
#
|
|
|
|
# cp example.config.cfg config.cfg
|
2024-07-01 02:59:14 -04:00
|
|
|
#
|
|
|
|
# If using sqlite (default)
|
|
|
|
# you can use the existing empty ddd_db.sqlite file
|
|
|
|
# and manually enter the sqlite_password into the config.cfg file
|
|
|
|
# for managing the database from /update_db.php
|
|
|
|
#
|
|
|
|
# If using mysql
|
2024-07-01 01:24:28 -04:00
|
|
|
# cp example.mysqlconnect.php /var/config/mysqlconnect.php
|
|
|
|
# chmod 755 /var/config/mysqlconnect.php
|
|
|
|
#
|
|
|
|
# the mysqlconnect.php is moved to /var/config to be outside the scope of the end user,
|
|
|
|
# you can place it elsewhere if you desire, be sure to update the mysqlconnect_path variable
|