☄️
Asteroid
  • Overview
    • 🎓Introduction
  • Installation
    • ❗Dependencies
    • ⚡How to install
  • Setup
    • 💼Commands
    • 📎Placeholders
    • 🌟Features
      • UUID Access
      • Command Masker
      • Multiplier
      • Connect or Disconnect Fake Players
      • Easily Generate Real or Cracked UUIDs
      • Import Files + Bedrock Support
      • Randomized Join
      • Randomized Disconnect
      • On-Join Commands
      • One-Time Commands
      • Gravity + Pick-up items
      • Fluctuation
      • Scheduler
      • AI
      • Asteroid Proxy
        • RedisDB + Lettuce
        • MySQL
    • 🍩Addons
      • Ranks
  • Tips
    • 💡Cross-Server Player Count (Proxies using Redis)
  • API
    • 🚀AsteroidAPI
    • 🛠️Usage
      • Extension Development Guide
Powered by GitBook
On this page
  1. Setup
  2. Features
  3. Asteroid Proxy

MySQL

Set up to inject fake players into the glist

So before doing anything, make sure that inside the configs for both backend and proxy, the mysql credentials are correctly set. By default there's a 2 second delay between player removal/add.

database:
  type: "sqlite" # mongodb, sqlite, mysql
  mysql:
    host: 'host'
    database: 'database'
    username: 'username'
    password: 'password'

The database type doesn't necessarily need to be mysql, you can leave it as it is normally. Make sure though that this is set to MySQL:

# ######################################################
#                       PROXY                          #
# ######################################################
proxy:
  # Master switch for proxy functionality
  enabled: false

  # The name of this server as registered in the proxy network
  # This should match the server name in your proxy's configuration
  server_name: 'dev2'

  # Data storage method for cross-server communication
  # Available options: Redis, Lettuce, MySQL
  # Note: If using MySQL, ensure correct database details are provided in the "database" section
  storage: "mysql" # <-- !!!!

  # Redis connection settings (RECOMMENDED)
  # Only relevant if storage matches set to "redis" or "lettuce"
  redis:
    # Redis connection URI
    # Format: redis://[:password@]host[:port][/database]
    uri: "redis://:password@host:port/0"

Read more about the other settings inside the config itself.

PreviousRedisDB + LettuceNextAddons

Last updated 3 months ago

🌟