←  Problemy

AMXX.pl: Support AMX Mod X i SourceMod

»

Błąd z bazą danych

Zablokowany

  • +
  • -
Kluchaha - zdjęcie Kluchaha 08.04.2010

Witam.
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.
Odpowiedz

Tomi - zdjęcie Tomi 08.04.2010

Odblokowales Mysql w Modules.ini?
Odpowiedz

  • +
  • -
Kluchaha - zdjęcie Kluchaha 08.04.2010

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
Odpowiedz

  • +
  • -
false - zdjęcie false 08.04.2010

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
Odpowiedz

  • +
  • -
Vertricus - zdjęcie Vertricus 08.04.2010

Cvary z diablo do amxx.cfg
w tym wypadku nie ustawione bo do localnego próbuje się podpiąć a się nie da tzn. go nie ma:>
Masz bazę wykupioną gdzies?
Odpowiedz

  • +
  • -
Kluchaha - zdjęcie Kluchaha 09.04.2010

Bazę danych mam wykupioną na niceshoot.pl i baza danych może nawiązać połączenie z kimś z zewnątrz ( dodałem "%" do hosta" )


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"
Odpowiedz

  • +
  • -
Vertricus - zdjęcie Vertricus 09.04.2010

Cvary do konfiguracji są inne ;>
To nie cvary typu amx_sql_host :>
Zapraszam do tematu z którego ściągałeś diablomod'a :>
Odpowiedz

Tomi - zdjęcie Tomi 09.04.2010

diablo_sql_host "195.2.255.175"
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
Odpowiedz
Zablokowany