Wysłany: 2021-11-05, 11:41
eksuu666
Wiek: 25 Na forum: 2392 dni Posty: 6
Piwa : 4
hej, mam dziwny b??d w bazie danych wy?wietlaj?cy si? przy pr?bie zalogowania na pysie 3
to wychodzi z db3:
Bad argument @ 'dbPoll' [Expected db-query at argument 1, got boolean]
Bad argument @ 'dbQuery' [Expected db-connection at argument 1, got nil]
kod:
Cytat: -- Functions
function startConnection()
ttHandler = dbConnect("mysql","dbname=mta_db;host=127.0.0.1","mta_user","123456")
if ttHandler then
outputDebugString("Toptimes Connection to database successfull")
else
ttHandler = nil
outputDebugString("Toptimes can't connect to database")
end
end
function dbSet(...)
if not {...} then return end
local query=dbExec(DBHandler, ...)
return query
end
function dbGet(...)
if not {...} then return end
local query=dbQuery(Handler, ...)
local result=dbPoll(query, -1)
return result
end
[/code]
kolejny b??d:
attemp to call global 'mysql_connect' (a nil value)
kod:
Cytat: local root = getRootElement()
local SQL
local function connect()
SQL = mysql_connect(SQL_HOST, SQL_LOGIN, SQL_PASSWD, SQL_DB, SQL_PORT)
if (not SQL) then
outputServerLog("BRAK POLACZENIA Z BAZA DANYCH!")
else
mysql_query(SQL,"SET NAMES utf8")
end
end
Wysłany: 2021-11-05, 13:04
killercycDDS
Migacz
Wiek: 25 Na forum: 4512 dni Posty: 629
Nick w MP: killer_cyc[DDS]
Piwa : 1659
jaki hosting masz serwer bo po drugim b??dzie wida? ?e nie masz modu?u mysql
Wysłany: 2021-11-05, 21:07
eksuu666
Wiek: 25 Na forum: 2392 dni Posty: 6
Piwa : 4
"killercycDDS" napisał/a :jaki hosting masz serwer bo po drugim b??dzie wida? ?e nie masz modu?u mysql
na localho?cie robie, a baza jest postawiona na vm docker pma
Wysłany: 2021-11-05, 22:28
kamison
Przyszły programista .lua
Wiek: 25 Na forum: 3302 dni Posty: 391
Nick w MP: kamison
Piwa : 594
"eksuu666" napisał/a :hej, mam dziwny b??d w bazie danych wy?wietlaj?cy si? przy pr?bie zalogowania na pysie 3
to wychodzi z db3:
Bad argument @ 'dbPoll' [Expected db-query at argument 1, got boolean]
Bad argument @ 'dbQuery' [Expected db-connection at argument 1, got nil]
kod:
Cytat: -- Functions
function startConnection()
ttHandler = dbConnect("mysql","dbname=mta_db;host=127.0.0.1","mta_user","123456")
if ttHandler then
outputDebugString("Toptimes Connection to database successfull")
else
ttHandler = nil
outputDebugString("Toptimes can't connect to database")
end
end
function dbSet(...)
if not {...} then return end
local query=dbExec(DBHandler, ...)
return query
end
function dbGet(...)
if not {...} then return end
local query=dbQuery(Handler, ...)
local result=dbPoll(query, -1)
return result
end
[/code]
kolejny b??d:
attemp to call global 'mysql_connect' (a nil value)
kod:
Cytat: local root = getRootElement()
local SQL
local function connect()
SQL = mysql_connect(SQL_HOST, SQL_LOGIN, SQL_PASSWD, SQL_DB, SQL_PORT)
if (not SQL) then
outputServerLog("BRAK POLACZENIA Z BAZA DANYCH!")
else
mysql_query(SQL,"SET NAMES utf8")
end
end
function dbSet (...)
if not {...} then return end
local query = dbExec ( DBHandler , ...)
return query
end
function dbGet (...)
if not {...} then return end
local query = dbQuery ( DBHandler , ...)
local result = dbPoll ( query , - 1 )
return result
[ Dodano : 2021-11-05, 22:30 ]
W tym drugim to uzupe?nij dane do mysql i upwenij si?, ?e masz modu?y wgrane i za?adowane w grze.
Podpis
Coś tam kiedyś robiłem.
DC: kamison_.
Więcej szczegółów
Wystawiono 1 piw(a):eksuu666
Wysłany: 2021-11-06, 10:41
eksuu666
Wiek: 25 Na forum: 2392 dni Posty: 6
Piwa : 4
do zamkni?cia, problem by? w zabezpieczeniach naszej bazy danych kt?rych mta nie wymaga xd
Tagi: baza :: danch
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: