Register for your free account! | Forgot your password?

You last visited: Today at 00:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



MySQL / Lua

Discussion on MySQL / Lua within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
iPeri /..'s Avatar
 
elite*gold: 2
Join Date: Jun 2015
Posts: 353
Received Thanks: 424
MySQL / Lua

Hi Leute,

ich bräuchte mal Hilfe bei einem Query,
undzwar würde ich gerne einen Wert in eine Tabelle setzen,
die Tabelle ist schon erstellt: auction_account

Diese beinhaltet 2 Spalten: id, money

Ich will nun durch einen mysql_query in Lua
die Account ID in die Spalte id und den Wert 0 in money einfügen...

Dieser query soll ohne angaben des Mysql PWs sein...

Danke für eure Hilfe
euer iPeri™
iPeri /.. is offline  
Old 08/06/2015, 16:48   #2
 
elite*gold: 5
Join Date: Mar 2015
Posts: 499
Received Thanks: 376
Code:
mysql_query("UPDATE db.auction_account SET money = 0 WHERE id = "..pc.get_account_id.." LIMIT 1;")
Db ersetzen mit deiner db. (Player,Account usw.)

Setzt die Column Money auf 0 (so hab ich es verstanden).
KΛIƬӨ is offline  
Thanks
1 User
Old 08/06/2015, 18:19   #3
 
iPeri /..'s Avatar
 
elite*gold: 2
Join Date: Jun 2015
Posts: 353
Received Thanks: 424
Ja, jedoch muss ein anderer Query die Account ID in
die ID-Spalte einfügen, damit er die IDs vergleichen kann...

Vielen Dank für die Hilfe @KΛIƬӨ
iPeri /.. is offline  
Reply


Similar Threads Similar Threads
Mysql fehler 1130-Host 'xxxx' is not allowed to connect to this MySQL server
02/21/2017 - Metin2 Private Server - 3 Replies
Hallo Community, und zwar ich habe ein Problem wenn ich auf Navicat gehe und auf meiner DB zugreifen möchte steht dort Mysql fehler 1130-Host 'xxxx' is not allowed to connect to this MySQL server ich hoffe mir kannn jemand helfen oder mir es beheben..
Mysql funktioniert nicht.. service mysql status mysql does not exist in /etc/rc.d
07/09/2015 - Metin2 Private Server - 8 Replies
Hey, mein Mysql Server funktíoniert von jetzt auf gleich nicht mehr.. Kam aus dem Freibad und alles war down.. Wenn ich den Mysql Server starten will sagt er mir: " service mysql status mysql does not exist in /etc/rc.d or the local startup directories (/usr/local/etc/rc.d) " Und wenn ich meinen Metin Server starte "cant connect to 127.0.0.1" weil der Mysql Server down ist..
Mysql fehler 1130-Host 'xxxx' is not allowed to connect to this MySQL server
10/18/2012 - Metin2 Private Server - 0 Replies
Ich brauche eure hilfe ich wollte einen P-server machen und benutzte Navicat für die DatenBank aber beim ersten mal ging es doch ich hatte dann die DB gelöscht,weil ich ein neues script hatte und dann wollte ich wieder eins machen aber es ging nicht so wie oben der Fehler ich bitte um hilfe danke :) aber bitte so schnell wie möglich um antwort danke Liebe Grüße : Silver2011
MySQL - L server through socket '/tmp/mysql.sock' (38) failed, retrying in 5 secon
06/28/2012 - Metin2 Private Server - 2 Replies
Hi EPvP I have one problem whit my server. I install a new game + db and i start him L server through socket '/tmp/mysql.sock' (38) failed, retrying in 5 secondsSuccess HOTBACKUP Why?



All times are GMT +1. The time now is 00:32.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.