# ==== Variables ====
databases:
MySQL:
type: MySQL
pattern: www_.*
host: mysql.titanaxe.com
port: 3306
user: srv129067
password: HASŁO
database: skript
table: variables
monitor changes: true
monitor interval: 20 seconds
default:
# The default "database" is a simple text file, with each variable on a separate line and the variable's name, type, and value separated by commas.
# This is the last database in this list to catch all variables that have not been saved anywhere else.
# You can modify this database freely, but make sure to know what you're doing if you don't want to loose any variables.
type: CSV
pattern: .*
file: ./plugins/Skript/variables.csv
backup interval: 2 hours
# PS: If you don't want some variables to be saved in any database (e.g. variables that contain an %entity% which usually despawn when the server is shut down)
# you can modify the last database's pattern to not match all variables, e.g. use '(?!x_).*' to match all variables that don't start with 'x_'.
# Be very cautious when doing this however as unsaved variables cannot be recovered after the server has been stopped.
# I recommend to use a single character to denote unsaved variables (similar to local variables' '_'), e.g. '-', in which case the last database's pattern should be '(?!-).*'.
I teraz. Jak to ma wyglądać? Chcę jakoś zapisywać do mysql dane. Widzę że każda zmienna msui zaczynać się od www_ więc jak zrobić aby się tam zapisywało. W takim stylu?:
on load:
set {www_zmienna} to 11
I pojawi się to w mySql? I jak odczytywać taką zmienną, tak?
send "Zmienna: %{www_zmienna}%"
Mi nie działa.... I czy dobrze mam ustawiony config?
Oto moje dane:
Host (adres serwera) mysql.titanaxe.com
Port 3306
Baza i użytkownik srv129067
Hasło UKRYTE HASŁO (poradzę sobie w przepisaniu :D)
Pytanie
Norbiros 20
Witam. To jest mój config.sk
# ==== Variables ==== databases: MySQL: type: MySQL pattern: www_.* host: mysql.titanaxe.com port: 3306 user: srv129067 password: HASŁO database: skript table: variables monitor changes: true monitor interval: 20 seconds default: # The default "database" is a simple text file, with each variable on a separate line and the variable's name, type, and value separated by commas. # This is the last database in this list to catch all variables that have not been saved anywhere else. # You can modify this database freely, but make sure to know what you're doing if you don't want to loose any variables. type: CSV pattern: .* file: ./plugins/Skript/variables.csv backup interval: 2 hours # PS: If you don't want some variables to be saved in any database (e.g. variables that contain an %entity% which usually despawn when the server is shut down) # you can modify the last database's pattern to not match all variables, e.g. use '(?!x_).*' to match all variables that don't start with 'x_'. # Be very cautious when doing this however as unsaved variables cannot be recovered after the server has been stopped. # I recommend to use a single character to denote unsaved variables (similar to local variables' '_'), e.g. '-', in which case the last database's pattern should be '(?!-).*'.I teraz. Jak to ma wyglądać? Chcę jakoś zapisywać do mysql dane. Widzę że każda zmienna msui zaczynać się od www_ więc jak zrobić aby się tam zapisywało. W takim stylu?:
on load: set {www_zmienna} to 11I pojawi się to w mySql? I jak odczytywać taką zmienną, tak?
send "Zmienna: %{www_zmienna}%"Mi nie działa.... I czy dobrze mam ustawiony config?
Oto moje dane:
Host (adres serwera) mysql.titanaxe.com Port 3306 Baza i użytkownik srv129067 Hasło UKRYTE HASŁO (poradzę sobie w przepisaniu :D)
Edytowane przez NorbirosOdnośnik do komentarza
https://skript.pl/temat/49519-pomoc-z-mysql/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.