K4stic Posted May 30, 2013 Share Posted May 30, 2013 Hello Community i wonna ask and to you show me how to transfer data of SQL to MySQL MySQL dbExec( connection, "INSERT INTO accounts SET username=?, password=?, serial=?", string.lower( user ), sha256( pass ), getPlayerSerial( source )) Link to comment
Castillo Posted May 30, 2013 Share Posted May 30, 2013 I don't understand what do you want to do. Link to comment
K4stic Posted May 30, 2013 Author Share Posted May 30, 2013 i make this: addEventHandler("onResourceStart", resourceRoot, function () local playersacc = executeSQLQuery( "SELECT id, name, password, serial FROM accounts",idName, nameName, passwordName, serialName ) for i, playerdata in ipairs(playersacc) do dbExec( connection,"INSERT INTO accounts SET id=?,username=?, password=?, serial=?", playerdata.id, playerdata.name, playerdata.password, playerdata.serial ) end end ) but it say no exist table accounts(and the table accounts is on internal.db) i wonna transfer account Data's from internal.db(id,username,password,serial) to MySQL Link to comment
Castillo Posted May 30, 2013 Share Posted May 30, 2013 That's because executeSQLQuery uses the "registry.db" database. Link to comment
K4stic Posted May 30, 2013 Author Share Posted May 30, 2013 thanks for that info so how i can make it :3 Link to comment
Castillo Posted May 30, 2013 Share Posted May 30, 2013 You can't really make it, since you can't get the password with scripts, you must convert the table with some program to a mysql table, then import it. Link to comment
fmj02 Posted May 30, 2013 Share Posted May 30, 2013 (edited) Search for sqlite to mysql converter with google. List of converter tools: http://www.sqlite.org/cvstrac/wiki?p=ConverterTools Edited May 30, 2013 by Guest Link to comment
K4stic Posted May 30, 2013 Author Share Posted May 30, 2013 i find better http://www.spectralcore.com/fullconvert/ Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now