MySQL

Discussion in 'Skript' started by theshow, Jul 6, 2021.

  1. Can i connect several servers by skript with mysql?

    I has already scrach a lot of articles about mySQL and skript

    but i dont still know how to do that
     
  2. I dont think its possible sadly.
     
  3. Use Bungeecord. Or other proxies like Velocity.
     
  4. it's very possible

    you can do it with my skript-db fork: https://www.spigotmc.org/resources/skript-db-updated.89363/

    just use the same database and tables for your servers and they'll use the same data

    also for quick data sharing between servers I recommend use of redis, you can use it in Skript with my RediSkript addon:
    https://www.spigotmc.org/resources/rediskript-communicate-between-servers-with-ease.85067/

    mysql is more well suited for persistent data like stats, redis for cache, like temporarily loaded data only while the player is online or telling to another server what to do