K4stic Posted May 30, 2013 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 )) Giving a Fuck? Nope, That isn't in My Skill Set
Castillo Posted May 30, 2013 Posted May 30, 2013 I don't understand what do you want to do. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
K4stic Posted May 30, 2013 Author 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 Giving a Fuck? Nope, That isn't in My Skill Set
Castillo Posted May 30, 2013 Posted May 30, 2013 That's because executeSQLQuery uses the "registry.db" database. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
K4stic Posted May 30, 2013 Author Posted May 30, 2013 thanks for that info so how i can make it :3 Giving a Fuck? Nope, That isn't in My Skill Set
Castillo Posted May 30, 2013 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
fmj02 Posted May 30, 2013 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
K4stic Posted May 30, 2013 Author Posted May 30, 2013 i find better http://www.spectralcore.com/fullconvert/ Giving a Fuck? Nope, That isn't in My Skill Set
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