1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!


    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Saving data to mysql for certain variables

Discussion in 'Skript' started by MrGametop1, Feb 13, 2020 at 3:54 AM.

  1. MrGametop1

    MrGametop1 Member

    Mar 10, 2017
    Likes Received:
    Hello, i know you know alot about skripting, so here is my question.
    Note : Thanks for all the help already

    In the config it says this:
    # #
    MySQL example:
    # A MySQL database example, with options unrelated to MySQL removed.

    type: disabled# change to line below to enable this database
    # type: MySQL

    pattern: synced_.*# this pattern will save all variables that start with 'synced_' in this MySQL database.

    host: localhost
    port: 3306
    user: root
    password: pass
    database: skript
    table: variables21

    monitor changes: true
    monitor interval: 20 seconds
    # #

    So if i enable MySQL
    Every variable named
    Will be saved to the MySQL database, and everything else will not be saved to the mysql put save to the CSV