lpiob / MTA-XyzzyRP

Gamemod RP do gry Multi Theft Auto, napisany głównie w języku LUA, w oparciu o bazę danych MySQL. Stworzony oryginalnie w 2012 roku i rozwijany dalej na potrzeby serwera http://lss-rp.pl/
Other
44 stars 94 forks source link

Baza kompletnie nie łączy sie mimo dobrych danych #513

Open Roshi94 opened 3 years ago

Roshi94 commented 3 years ago

Jak w temacie, sql.lua i sql 2 dobrze wypełnione czy gdzieś jeszcze trzeba edytować ? kurde 2 pliki tylko pare elementów do edytowania, a wgl się nie chcę łączyć.

Dodam, że przy pkt 7 instalacji Plik modules/mta_mysql.so z repozytorium umieszczamy w mods/deatchmatch/modules/mta_mysql.so na koncie FTP.

nie miałem tego katalogu musiałem utworzyć nwm czy to ma coś do gadania Co tu sie jeszcze edytuje, bo baza login haslo dobrze edytowane i nic

[20-12-30 03:02:21] ERROR: [XyzzyRP]/lss-core/auth.lua:22: bad argument #2 to 'format' (string expected, got boolean) [DUP x3] [20-12-30 03:02:26] ERROR: [XyzzyRP]/DB/sql.lua:70: attempt to call global 'mysql_query' (a nil value) [20-12-30 03:02:26] ERROR: [XyzzyRP]/lss-core/server_stats.lua:14: call: failed to call 'DB:zapytanie' [string "?"] [20-12-30 03:02:30] ERROR: [XyzzyRP]/DB/sql.lua:43: attempt to call global 'mysql_escape_string' (a nil value) [20-12-30 03:02:30] ERROR: [XyzzyRP]/lss-core/auth.lua:22: call: failed to call 'DB:esc' [string "?"] [20-12-30 03:02:30] ERROR: [XyzzyRP]/lss-core/auth.lua:22: bad argument #2 to 'format' (string expected, got boolean) [20-12-30 03:02:35] QUIT: Roshi left the game [Quit] [20-12-30 03:02:36] ERROR: [XyzzyRP]/DB/sql.lua:43: attempt to call global 'mysql_escape_string' (a nil value) [20-12-30 03:02:36] ERROR: [XyzzyRP]/lss-core/auth.lua:22: call: failed to call 'DB:esc' [string "?"] [20-12-30 03:02:36] ERROR: [XyzzyRP]/lss-core/auth.lua:22: bad argument #2 to 'format' (string expected, got boolean) [20-12-30 03:02:57] ERROR: [XyzzyRP]/DB/sql.lua:70: attempt to call global 'mysql_query' (a nil value) [20-12-30 03:02:57] ERROR: [XyzzyRP]/lss-core/server_stats.lua:14: call: failed to call 'DB:zapytanie' [string "?"] [20-12-30 03:02:58] INFO: Zaladowano zmienionych domow: 0 [20-12-30 03:02:59] ERROR: [XyzzyRP]/DB/sql.lua:43: attempt to call global 'mysql_escape_string' (a nil value) [20-12-30 03:02:59] ERROR: [XyzzyRP]/lss-core/server_stats.lua:26: call: failed to call 'DB:esc' [string "?"] [20-12-30 03:02:59] ERROR: [XyzzyRP]/lss-core/server_stats.lua:27: bad argument #2 to 'format' (string expected, got boolean) [20-12-30 03:03:28] ERROR: [XyzzyRP]/DB/sql.lua:70: attempt to call global 'mysql_query' (a nil value) [20-12-30 03:03:28] ERROR: [XyzzyRP]/lss-core/server_stats.lua:14: call: failed to call 'DB:zapytanie' [string "?"] [20-12-30 03:03:48] INFO: Zaladowano zmienionych domow: 0 [20-12-30 03:03:52] ERROR: [XyzzyRP]/DB/sql.lua:43: attempt to call global 'mysql_escape_string' (a nil value) [20-12-30 03:03:52] ERROR: [XyzzyRP]/lss-core/server_stats.lua:26: call: failed to call 'DB:esc' [string "?"] [20-12-30 03:03:52] ERROR: [XyzzyRP]/lss-core/server_stats.lua:27: bad argument #2 to 'format' (string expected, got boolean) [20-12-30 03:03:58] ERROR: [XyzzyRP]/DB/sql.lua:61: attempt to call global 'mysql_query' (a nil value) [20-12-30 03:03:58] ERROR: [XyzzyRP]/[obiekty]/lss-poczta/punkt_dystrybucji.lua:29: call: failed to call 'DB:pobierzWyniki' [string "?"] [20-12-30 03:03:59] ERROR: [XyzzyRP]/DB/sql.lua:70: attempt to call global 'mysql_query' (a nil value) [20-12-30 03:03:59] ERROR: [XyzzyRP]/lss-core/server_stats.lua:14: call: failed to call 'DB:zapytanie' [string "?"] [20-12-30 03:04:30] ERROR: [XyzzyRP]/DB/sql.lua:70: attempt to call global 'mysql_query' (a nil value) [20-12-30 03:04:30] ERROR: [XyzzyRP]/lss-core/server_stats.lua:14: call: failed to call 'DB:zapytanie' [string "?"] [20-12-30 03:04:38] INFO: Zaladowano zmienionych domow: 0 [20-12-30 03:04:45] ERROR: [XyzzyRP]/DB/sql.lua:43: attempt to call global 'mysql_escape_string' (a nil value) [20-12-30 03:04:45] ERROR: [XyzzyRP]/lss-core/server_stats.lua:26: call: failed to call 'DB:esc' [string "?"] [20-12-30 03:04:45] ERROR: [XyzzyRP]/lss-core/server_stats.lua:27: bad argument #2 to 'format' (string expected, got boolean) [20-12-30 03:05:01] ERROR: [XyzzyRP]/DB/sql.lua:70: attempt to call global 'mysql_query' (a nil value) [20-12-30 03:05:01] ERROR: [XyzzyRP]/lss-core/server_stats.lua:14: call: failed to call 'DB:zapytanie' [string "?"] [20-12-30 03:05:28] INFO: Zaladowano zmienionych domow: 0 [20-12-30 03:05:34] ERROR: [XyzzyRP]/DB/sql.lua:70: attempt to call global 'mysql_query' (a nil value) [20-12-30 03:05:34] ERROR: [XyzzyRP]/lss-core/server_stats.lua:14: call: failed to call 'DB:zapytanie' [string "?"] [20-12-30 03:05:38] ERROR: [XyzzyRP]/DB/sql.lua:43: attempt to call global 'mysql_escape_string' (a nil value) [20-12-30 03:05:38] ERROR: [XyzzyRP]/lss-core/server_stats.lua:26: call: failed to call 'DB:esc' [string "?"] [20-12-30 03:05:38] ERROR: [XyzzyRP]/lss-core/server_stats.lua:27: bad argument #2 to 'format' (string expected, got boolean) [20-12-30 03:05:58] ERROR: [XyzzyRP]/DB/sql.lua:61: attempt to call global 'mysql_query' (a nil value) [20-12-30 03:05:58] ERROR: [XyzzyRP]/[obiekty]/lss-poczta/punkt_dystrybucji.lua:29: call: failed to call 'DB:pobierzWyniki' [string "?"] [20-12-30 03:06:03] ERROR: [XyzzyRP]/DB/sql.lua:70: attempt to call global 'mysql_query' (a nil value) [20-12-30 03:06:03] ERROR: [XyzzyRP]/lss-core/server_stats.lua:14: call: failed to call 'DB:zapytanie' [string "?"] [20-12-30 03:06:18] INFO: Zaladowano zmienionych domow: 0 [20-12-30 03:06:31] ERROR: [XyzzyRP]/DB/sql.lua:43: attempt to call global 'mysql_escape_string' (a nil value) [20-12-30 03:06:31] ERROR: [XyzzyRP]/lss-core/server_stats.lua:26: call: failed to call 'DB:esc' [string "?"] [20-12-30 03:06:31] ERROR: [XyzzyRP]/lss-core/server_stats.lua:27: bad argument #2 to 'format' (string expected, got boolean) [20-12-30 03:06:34] ERROR: [XyzzyRP]/DB/sql.lua:70: attempt to call global 'mysql_query' (a nil value) [20-12-30 03:06:34] ERROR: [XyzzyRP]/lss-core/server_stats.lua:14: call: failed to call 'DB:zapytanie' [string "?"]

Roshi94 commented 3 years ago

host taki sam jak podali przy hostingu posiadam testowy z live serwer i posiadają i2.liveserver.pl

Roshi94 commented 3 years ago

coś tam zmieniłem ale wali cały czas [20-12-30 03:27:32] ERROR: [XyzzyRP]/DB/sql.lua:70: attempt to call global 'mysql_query' (a nil value) [20-12-30 03:27:32] ERROR: [XyzzyRP]/lss-core/server_stats.lua:14: call: failed to call 'DB:zapytanie' [string "?"]

Roshi94 commented 3 years ago

tzn chciałem uruchomić ogl to i sprawidzić co i jak bo to będzie na maszynie z kimsufi i tak bo tam mam serwery inne, no ale ok. Kurde dziwny ten błąd 513 zapytań a polowa to właśnie o to chodzi ;d

Roshi94 commented 3 years ago

sql.lua? kurde nawet na localhoscie nie załączyło ;d

Roshi94 commented 3 years ago

Nie wiem co za problem postawić czysty serwer mta, a co do tego to moduły z paczki wgrane od razu na początku jak opisane jest.

Roshi94 commented 3 years ago

dokładnie baza importowana jest do mysql, ledwo konto zrobiłem z poradnika co jest podany,

local SQL_LOGIN="k15963_s20832" local SQL_PASSWD="7cbc0eb71428" local SQL_DB="db_20832" local SQL_HOST="i2.liveserver.pl" local SQL_PORT=tonumber(get("port") or 3306)

SQL = dbConnect("mysql", "dbname=db_20832;host=i2.liveserver.pl", "k15963_s20832","7cbc0eb71428","share=1") if (not SQL) then

Roshi94 commented 3 years ago

to są podane linijki z tego sql.lua (db i db2 raczej błędu w literówce nie ma bo skopiowane jest

Roshi94 commented 3 years ago

image ten local tam jest ;d a to spokojnie literówki zmienione

Roshi94 commented 3 years ago

Nie wbije na serwa bo nie moge na testową postać czy moją co zrobiłem wbić pod F8. Tak czytam to w tym pocie nic sensownego sie nie dowiedziałem. Ogl patrze na wiki https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL jest napisane a w pliku z paczki jest ten cudzysłów"" ma coś do znaczenia ?

Roshi94 commented 3 years ago

ogl nową paczka nie posiadała libów wgrałem libmysql.dll do modules oraz nowszą wersje mta_mysql.so bo w tych plikach była w uj stara i jakoś odpaliło na serwerze mając LOCALHOST wpisany.

marekra3 commented 3 years ago

w konsoli loadmodule mta_mysql.so