🔧 Database Setup Required

The Fixture Manager needs a MySQL database to function properly.

⚠️ Database Not Connected
The application cannot connect to the database. Please follow the steps below to set up your database.

Step 1: Install MySQL Server

If you don't have MySQL installed, install it first:

# Ubuntu/Debian sudo apt update sudo apt install mysql-server # CentOS/RHEL/Fedora sudo yum install mysql-server # or sudo dnf install mysql-server # Start MySQL service sudo systemctl start mysql sudo systemctl enable mysql

Step 2: Create Database and User

Log into MySQL and create the database:

# Log into MySQL as root sudo mysql -u root -p # Create database CREATE DATABASE fixture_manager CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; # Create user (replace 'your_password' with a secure password) CREATE USER 'fixture_user'@'localhost' IDENTIFIED BY 'your_password'; # Grant privileges GRANT ALL PRIVILEGES ON fixture_manager.* TO 'fixture_user'@'localhost'; FLUSH PRIVILEGES; # Exit MySQL EXIT;

Step 3: Configure Environment Variables

Create a .env file in the application directory with your database settings:

Example .env file:
# Database Configuration MYSQL_HOST=localhost MYSQL_PORT=3306 MYSQL_USER=fixture_user MYSQL_PASSWORD=your_password MYSQL_DATABASE=fixture_manager # Security SECRET_KEY=your-secret-key-here JWT_SECRET_KEY=your-jwt-secret-key-here # Application Settings HOST=0.0.0.0 PORT=5000 DEBUG=False LOG_LEVEL=INFO # File Upload Settings UPLOAD_FOLDER=/var/lib/fixture-daemon/uploads MAX_CONTENT_LENGTH=524288000 # Daemon Settings DAEMON_PID_FILE=/var/run/fixture-daemon.pid DAEMON_LOG_FILE=/var/log/fixture-daemon.log DAEMON_WORKING_DIR=/var/lib/fixture-daemon

Step 4: Initialize Database Schema

The application will automatically create the necessary tables when it connects to the database.

Alternatively, you can manually run the schema file:

mysql -u fixture_user -p fixture_manager < database/schema.sql

Step 5: Restart the Application

After configuring the database, restart the Fixture Manager daemon:

# Stop the daemon ./fixture-manager stop # Start the daemon ./fixture-manager start # Or restart ./fixture-manager restart
✅ Default Admin Account
Once the database is set up, a default admin account will be created:
Username: admin
Password: admin123
Please change this password immediately after first login!
🔄 Check Connection 📊 System Health

Need Help?