Skript ve veritabani

MrUnioDex

CEO of UnioCraft
En iyi cevaplar
0
Skriptte bi veritabani sistemi varmi? Mysql, yml, sqllite vs.

Oylama scripti yapacagim bu yuzden veritabani sart
 
H

hsndmrts_

Ziyaretçi
hmmm güzel fikir aslında olması lazım diycem ancak olmama ihtimali daha yüksek :/ @ta1ha bilir
 

Enderiatus

Kızıltaş Madencisi
En iyi cevaplar
0
Evet mevcut.Config.Yml içinde bulunuyor.
Kod:
# == MySQL configuration ==
        host: localhost # Where the database server is located at, e.g. 'example.com', 'localhost', or '192.168.1.100'
        port: 3306 # 3306 is MySQL's default port, i.e. you likely won't need to change this value
        user: root
        password: pass
        database: skript # The database to use. Skript will automatically create a table 'variables21' in this database if it doesn't exist
                        # (If the table exists but is defined differently that how Skript expects it to be you'll get errors and no variables will be saved and/or loaded)
       
        # == SQLite/CSV configuration ==
        file: ./plugins/Skript/variables.db
        # Where to save the variables to. For a CSV file, the file extension '.csv' is recommended, but not required, but SQLite database files must end in '.db' (SQLibrary forces this).
        # The file path can either be absolute (e.g. 'C:\whatever\...' [Windows] or '/usr/whatever/...' [Unix]), or relative to the server directory (e.g. './plugins/Skript/...').
       
        backup interval: 2 hours
        # Creates a backup of the file every so often. This can be useful if you ever want to revert variables to an older state.
        # Variables are saved constantly no matter what is set here, thus a server crash will never make you loose any variables.
        # Set this to 0 to disable this feature.
       
   
    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
       
        monitor changes: true
        monitor interval: 20 seconds
 
S

Sergunkorowakurwa

Ziyaretçi
Evet mevcut.Config.Yml içinde bulunuyor.
Kod:
# == MySQL configuration ==
        host: localhost # Where the database server is located at, e.g. 'example.com', 'localhost', or '192.168.1.100'
        port: 3306 # 3306 is MySQL's default port, i.e. you likely won't need to change this value
        user: root
        password: pass
        database: skript # The database to use. Skript will automatically create a table 'variables21' in this database if it doesn't exist
                        # (If the table exists but is defined differently that how Skript expects it to be you'll get errors and no variables will be saved and/or loaded)
      
        # == SQLite/CSV configuration ==
        file: ./plugins/Skript/variables.db
        # Where to save the variables to. For a CSV file, the file extension '.csv' is recommended, but not required, but SQLite database files must end in '.db' (SQLibrary forces this).
        # The file path can either be absolute (e.g. 'C:\whatever\...' [Windows] or '/usr/whatever/...' [Unix]), or relative to the server directory (e.g. './plugins/Skript/...').
      
        backup interval: 2 hours
        # Creates a backup of the file every so often. This can be useful if you ever want to revert variables to an older state.
        # Variables are saved constantly no matter what is set here, thus a server crash will never make you loose any variables.
        # Set this to 0 to disable this feature.
      
  
    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
      
        monitor changes: true
        monitor interval: 20 seconds
Peki Skript içinden kayıtları gönderme işlemlerini nasıl yapacağız?
 

Enderiatus

Kızıltaş Madencisi
En iyi cevaplar
0
Hiç kullanmadım o tür şeyleri.Fikrim yok sadece MySQL oldugunu söyledim ben o kadar.
 

MrUnioDex

CEO of UnioCraft
En iyi cevaplar
0
Mysql baglantisi .sk dosyalari icin degildir umarim sanirim variable sistemi var .csv dosyalara kaydediliyormus detayli arastirmadim
 
Üst