require("mysqloo")
db = mysqloo.connect(HOST, USERNAME, PASSWORD, DB_NAME, PORT)
function db:onConnected()
print( "Database has connected!" )
local q = self:query( "SELECT 5+5" )
function q:onSuccess( data )
print( "Query successful!" )
PrintTable( data )
end
function q:onError( err, sql )
print( "Query errored!" )
print( "Query:", sql )
print( "Error:", err )
end
q:start()
end
function db:onConnectionFailed( err )
print( "Connection to database failed!" )
print( "Error:", err )
end
db:connect()
After that, nothing happened, the connection to the database was not carried out, there was not even an error
OS: Windows 10
I used example code
After that, nothing happened, the connection to the database was not carried out, there was not even an error OS: Windows 10