Not a member yet? Register for your free account!

You last visited: Today at 06:34

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


Metin2 lua query

Discussion on Metin2 lua query within the Metin2 PServer - Discussions / Questions forum part of the Metin2 category.

Thread Tools
Old   #1
Join Date: May 2009
Posts: 55
Received Thanks: 7
Metin2 lua query

function query(sql)
	user = "mt2"
	pw = "mt2!@#"
	local var = {}
	var.pre = ''
	if user ~= nil then
	var.pre = var.pre..' -u'..user
	if pw ~= nil then
	var.pre = var.pre..' -p'
	var.scriptfile = 'sc_'..pc.get_name()..number(1,999)..number(2,999)..number(3,999)
	var.outputfile = 'op_'..pc.get_name()..number(1,999)..number(2,999)..number(3,999)
	sql = string.gsub(sql,'"',"'")
	var.str = "/usr/local/bin/mysql -N -L "..var.pre.." < "..var.scriptfile.." > "..var.outputfile
	script =,"a+")
	back =
	quer = back:read()
	return quer
This is my function to use mysql with localhost mysql.

How to use query with external host mysql?

using other IP?


dramcio is offline  
Old   #2
Join Date: Aug 2011
Posts: 1,295
Received Thanks: 541
i guess its not possible o.o
otherwise why do you need it? localhost is more safety as a extern host i guess
Apocalyptum is offline  
Old   #3
Join Date: May 2009
Posts: 55
Received Thanks: 7
I need to connect with extain host to insert some thing

/// I can open other website (etc. cron) but from quest. i don't have apache on my freebsd.

dramcio is offline  
Old   #4
Join Date: May 2009
Posts: 1,177
Received Thanks: 2,403
mysql -h123.456.789 -x -y -bla

Type this and read : man mysql


Mijago is offline  
2 Users

Thread Tools

Similar Threads
Metin2 Kann keine Query´s einfügen..!
Hallo epvp.... Ich habe das Problem das ich einfach keine Query´s richtig einfügen kann Ich wolte die neuen 2011er waffen einfügen, So füge ich...
2 Replies
[Suche]Query für "Alteklinge, Reichsklinge" &' Stichdolche NUR QUERY!
Ich weiß ich werd nervig aber ich suche die Query's für Alteklinge, Reichsklinge &' Strichdolche Why? Naya, weil ich in der DB i-wie nur...
1 Replies

All times are GMT +2. The time now is 06:34.

Powered by vBulletin®
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2015 elitepvpers All Rights Reserved.