Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 01:50

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

Advertisement



Problem whit mysql 5.6

Discussion on Problem whit mysql 5.6 within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2012
Posts: 12
Received Thanks: 0
Problem whit mysql 5.6

Help i use mysql 5.6 and cant found its..



function give_md(z)
os.execute("mysql -uroot -pM22 account --execute='UPDATE account SET coins = coins + ".. z .." WHERE id = ".. pc.get_account_id() ..";'")
os.execute("mysql -uroot -pM22 log --execute='INSERT INTO mds_log (account_id, player_id, coins, fecha) VALUES (".. pc.get_account_id() ..", ".. pc.get_player_id() ..", ".. z ..", NOW());'")
end
mysql_query = function(query)
if not pre then
local rt = io.open('CONFIG','r'):read('*all')
pre,_= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+) %s(%S+).+','-h%1 -u%2 -p%3 -D%4')
end
math.randomseed(os.time())
local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2 ^10),{},{}
--os.execute('mysql '..pre..' --e='..string.format('%q',query)..' > '..fi) -- für MySQL51
os.execute('mysql '..pre..' -e'..string.format('%q',query)..' > '..fi) -- für MySQL55
for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi);
for i = 2, table.getn(t) do table.foreach(t[i],function(a,B)
out[i-1] = out[i-1] or {}
out[i-1][a] = tonumber(B) or b or 'NULL'
out[t[1][a]] = out[t[1][a]] or {}
out[t[1][a]][i-1] = tonumber(B) or b or 'NULL'
end) end
return out
end
function split(str, delim, maxNb)
if str == nil then return str end
if string.find(str, delim) == nil then return { str } end
if maxNb == nil or maxNb < 1 then maxNb = 0 end
local result = {}
local pat = "(.-)" .. delim .. "()"
local nb = 0
local lastPos
for part, pos in string.gfind(str, pat) do
nb = nb + 1
result[nb] = part
lastPos = pos
if nb == maxNb then break end
end
if nb ~= maxNb then result[nb + 1] = string.sub(str, lastPos) end
return result
end



not found execute and mysql_query not found too..
lizzes is offline  
Old 07/29/2014, 19:15   #2
 
xVanilla94's Avatar
 
elite*gold: 0
Join Date: Jan 2014
Posts: 90
Received Thanks: 565
For os.execute you'll have to add
os.execute
to your quest_functions file. mysql_query relies on os.execute in your implementation.
xVanilla94 is offline  
Old 07/29/2014, 20:32   #3
 
elite*gold: 0
Join Date: Nov 2012
Posts: 12
Received Thanks: 0
But yes add, in 5.5 found 100% but in 5.6 not found..
lizzes is offline  
Old 07/30/2014, 00:03   #4
 
elite*gold: 1
Join Date: Jul 2014
Posts: 149
Received Thanks: 11
Mysql 5 5 is for Metin2 better.
[SL]Pertatofix is offline  
Old 07/30/2014, 00:59   #5
 
xVanilla94's Avatar
 
elite*gold: 0
Join Date: Jan 2014
Posts: 90
Received Thanks: 565
No mysql 5.6 works fine. Please give a more detailed error report. Tell us what's the output in your console when the error occurs and what's written in the syserr file.
you can just quote it so we can have a better understanding of the error.
xVanilla94 is offline  
Old 07/30/2014, 22:38   #6
 
elite*gold: 0
Join Date: Nov 2012
Posts: 12
Received Thanks: 0
I formatted the dedicated and put mysql 5.5 but still not working any suggestions?
lizzes is offline  
Reply


Similar Threads Similar Threads
[MYSQL]Mysql.sock problem.
06/15/2013 - Metin2 Private Server - 3 Replies
http://www.metin2dream.com/upload/images/sinttuvnv .jpg Solution?, i reinstall mysql, is dedicated
I have a problem whit win hex
11/11/2011 - General Gaming Discussion - 0 Replies
Hi... Why i cannot save the file on win hex, or how i can get the full version win hex with linense? When i try to do other move i get it : GirlShare - Download untitled1.bmp
[PROBLEM]:[Root]:Mysql:[...]/tmp/mysql.sock
10/22/2011 - Metin2 Private Server - 3 Replies
Hallo Community habe jetzt seit ein Paar Tagen einen Fehler Namens: failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Screen: http://img809.imageshack.us/img809/9805/helpg.png
I need help whit Navicat Mysql check pls
03/25/2009 - Conquer Online 2 - 1 Replies
hey guys i have prob i'm trying to make new connection at navicat and i can't i get error when i try to open it look this image:http://img91.imageshack.us/img91/7963/errore sx.png:confused: i think some one must know to fix this pls help thanks:handsdown:



All times are GMT +2. The time now is 01:50.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.