Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Błąd z bazą danych
#1
Posted 08.04.2010 17:53
Mam problem z połączeniem się z bazą MySQL. Czytałem że jest możliwe że moja baza automatycznie ustawia sobie host 127.0.0.1 przez co robi się pętla .
Wersja AMX jakiej używam to 1.8.1. Tutaj macie logi jakie cały czas mi się pokazują :
L 04/09/2010 - 02:37:16: 04/09/2010 - 02:37:16 ### MAPA: de_dust2_mini ###
L 04/09/2010 - 02:37:23: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 04/09/2010 - 02:37:23: Could not connect to SQL database.
L 04/09/2010 - 02:37:27: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 04/09/2010 - 02:37:27: Could not connect to SQL database.
L 04/09/2010 - 02:37:27: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 04/09/2010 - 02:37:27: Could not connect to SQL database.
L 04/09/2010 - 02:39:19: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 04/09/2010 - 02:39:19: Could not connect to SQL database.
L 04/09/2010 - 02:39:22: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 04/09/2010 - 02:39:22: Could not connect to SQL database.
L 04/09/2010 - 02:39:22: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 04/09/2010 - 02:39:22: Could not connect to SQL database.
Bardzo bym prosił o odpowiedź wraz z wyjaśnieniem jak wykonać dane czynności.
#2
Posted 08.04.2010 17:55
#3
Posted 08.04.2010 18:07
modules.ini :
;;;
; To enable a module, remove the semi-colon ( in front of its name.
; If it's not here, simply add it its name, one per line.
; You don't need to write the _amxx part or the file extension.
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SQL Modules usually need to be enabled manually ;;
;; You can have any number on at a time. Use ;;
;; amx_sql_type in sql.cfg to specify the default ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mysql
sqlite
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Put third party modules below here. ;;
;; You can just list their names, without the _amxx ;;
;; or file extension. ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; These modules will be auto-detected and loaded ;;
;; as needed. You do not need to enable them here ;;
;; unless you have problems. ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
fun
engine
fakemeta
geoip
sockets
regex
nvault
cstrike
csx
hamsandwich
#4
Posted 08.04.2010 21:38
tak, odblokowałem
modules.ini :
;;;
; To enable a module, remove the semi-colon ( in front of its name.
; If it's not here, simply add it its name, one per line.
; You don't need to write the _amxx part or the file extension.
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SQL Modules usually need to be enabled manually ;;
;; You can have any number on at a time. Use ;;
;; amx_sql_type in sql.cfg to specify the default ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mysql
sqlite
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Put third party modules below here. ;;
;; You can just list their names, without the _amxx ;;
;; or file extension. ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; These modules will be auto-detected and loaded ;;
;; as needed. You do not need to enable them here ;;
;; unless you have problems. ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
fun
engine
fakemeta
geoip
sockets
regex
nvault
cstrike
csx
hamsandwich
Pokaz sql cfg
#5
Posted 08.04.2010 21:56
w tym wypadku nie ustawione bo do localnego próbuje się podpiąć a się nie da tzn. go nie ma:>
Masz bazę wykupioną gdzies?
#6
Posted 09.04.2010 06:58
sql.cfg :
amx_sql_host "195.2.255.175"
amx_sql_user "karolk955_wypasi"
amx_sql_pass "moje hasło ;-)"
amx_sql_db "karolk955_wypasi"
amx_sql_table "dbmod"
amx_sql_type "mysql"
#7
Posted 09.04.2010 07:23
To nie cvary typu amx_sql_host
Zapraszam do tematu z którego ściągałeś diablomod'a
#8
Posted 09.04.2010 07:46
diablo_sql_user "karolk955_wypasi"
diablo_sql_pass "HASLO"
diablo_sql_database "karolk955_wypasi"
diablo_sql_table "dbmod"
to 1/3 co masz dodac do amxx.cfg
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users