πDatabase
Configuration for your database
Config
You will find this part in the default.toml file under the phoenixc2/server/data/configs directory:
[database]
type = "sqlite"
sqlite_name = "default"
user = "phoenix"
pass = "YourS3cuReP4ss"
host = "localhost"
port = 3306
database = "PhoenixFramework"
This is the part of the configs which specifies your database.
Configuring the database
SQLite ist the default option.
There is only one configuration:
sqlite_name which represents the name of the .sqlite3 file
Log in using the your database, using the mysql utility.
Replace HOST with the address of the database and PASSWORD with the password.
CREATE USER 'phoenix'@'HOST' IDENTIFIED BY 'PASSWORD';
GRANT ALL PRIVILEGES ON PhoenixC2.* TO 'phoenix'@'localhost' WITH GRANT OPTION;
CREATE DATABASE PhoenixC2;
FLUSH PRIVLEGES;
After that update your database configuration:
[database]
type = "mysql"
sqlite_name = "default"
user = "phoenix"
pass = "PASSWORD"
host = "HOST"
port = 3306
database = "PhoenixC2"
Last updated
Was this helpful?