Calculador Posted June 27, 2017 Share Posted June 27, 2017 Hello everyone, Okey, i dont know the reason of this error, but it does not let me make any query. When i use dbExec or dbQuery this error appear. If anyone knows the solution would appreciate it This is the error: and this is my code: -- SERVIDOR LOCAL local MYSQL_HOST = "localhost"; local MYSQL_DATABASE = "david"; local MYSQL_USER = "root"; local MYSQL_PASSWORD = ""; handler = dbConnect("mysql", "dbname = "..MYSQL_DATABASE..";host = "..MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD) if handler then outputDebugString("Se conecto correctamente a la database: "..MYSQL_DATABASE.."!",3, 0, 255,0) else outputDebugString("[ERROR] NO se conecto correctamente a la database: "..MYSQL_DATABASE.."!",1, 255, 0,0) end local insert = dbExec(handler, "INSERT INTO `personas` (`Codigo`, `Nombre`, `Telefono`) VALUES (`1`, `David`, `3194508697`)") -- The error is here Thanks to all. Link to comment
MIKI785 Posted June 28, 2017 Share Posted June 28, 2017 Does the database 'david' exist? 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