Not a member yet? Register for your free account!

You last visited: Today at 11:24

  • 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,291
Received Thanks: 540
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,388
mysql -h123.456.789 -x -y -bla

Type this and read : man mysql


Mijago is offline  
2 Users

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Metin2 Kann keine Query´s einfügen..! eXelence Metin2 PServer - Discussions / Questions 2 08/23/2011 16:42
[Suche]Query für "Alteklinge, Reichsklinge" &' Stichdolche NUR QUERY! VeN. Metin2 PServer - Discussions / Questions 1 08/18/2010 02:34

All times are GMT +1. The time now is 11:24.

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.