https://www.ultima-strike.com/dokuman/56b-mysql-den-yararlanma
İlk önce şunu yaptım.
db.execute "create table test(isim text, killsayisi int, uid text)"
Bu komutla bir test tablosu oluşturdum ve içeriğini belirttim.
Daha sonra
db.execute "insert into test values ('Trina',55,'04ff')"
bu komutla tabloya eklemeler yaptım.(5-10 adet)
Daha sonra oyun içerisinden bunları okumayı istedim.Onun içinde bu
[function test]
db.execute "select * from test"
for x 0 88
if !(<db.row.<dlocal.x>.isim>)
return 1
endif
sysmessage <db.row.<dlocal.x>.isim>
endfor
scripti kullandım.Fakat sphere konsolda bir hata aldım.O hatada şudur.
ERROR:MySQL server link has been lost. Trying to reattach to it