Database
This document details the configuration settings for the database system.
Database Type Settings
Database Type
Type
String
Description
Specifies the type of database to use
Default
"sqlite"
Valid Values
"sqlite", "mysql"
SQLite Configuration
SQLite Database Path
Type
String
Description
File path for the SQLite database
Default
"Skynomi.sqlite3"
Required
Only when Database Type is "sqlite"
Example
"SQLite Database Path": "Skynomi.sqlite3"
MySQL Configuration
MySqlHost
Type
String
Description
Host address and port for MySQL server
Default
"localhost:3306"
Required
Only when Database Type is "mysql"
Format
"hostname:port"
MySqlDbName
Type
String
Description
Name of the MySQL database
Default
"" (empty string)
Required
Only when Database Type is "mysql"
MySqlUsername
Type
String
Description
Username for MySQL authentication
Default
"" (empty string)
Required
Only when Database Type is "mysql"
MySqlPassword
Type
String
Description
Password for MySQL authentication
Default
"" (empty string)
Required
Only when Database Type is "mysql"
Example Configurations
SQLite Configuration Example
{
"Database Type": "sqlite",
"SQLite Database Path": "Skynomi.sqlite3",
"MySqlHost": "localhost:3306",
"MySqlDbName": "",
"MySqlUsername": "",
"MySqlPassword": ""
}
MySQL Configuration Example
{
"Database Type": "mysql",
"SQLite Database Path": "",
"MySqlHost": "localhost:3306",
"MySqlDbName": "skynomi_db",
"MySqlUsername": "skynomi_user",
"MySqlPassword": "your_secure_password"
}
Security Best Practices
Use strong passwords for MySQL authentication
Keep database credentials secure and never share them
Regularly backup your database
Use appropriate file permissions for SQLite database files
Consider using environment variables for sensitive information
Configuration Notes
Only fill in the credentials for the database type you're using
Ensure proper network connectivity for MySQL connections
Verify database user permissions
Keep regular backups of your database
Monitor database performance and storage usage
Last updated