Files
Spirit-PTCGO/sql/README.md
Brandon Nguyen 69ecdf4112 FEAT!: Add mariadb / mysql support and acompanying .sql files
for any developers seeing this commit, this shouldn't require any changes to your own server right now. It adds the ability for VPS hosted servers to utilize a better database system in the case of 100+ concurrent players
2026-09-16 14:33:14 -07:00

543 B

MariaDB / MySQL player database

spirit_ptcgo.sql creates the player database tables for MariaDB/MySQL.

Create an empty database, then import the file with a database account allowed to create tables:

CREATE DATABASE spirit_ptcgo CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
mysql -u db_admin -p spirit_ptcgo < sql/spirit_ptcgo.sql

Set DATABASE_URL in spirit/config.py to your connection URL, for example:

DATABASE_URL = "mysql+pymysql://spirit_user:password@db-host/spirit_ptcgo?charset=utf8mb4"