Problem z połączeniem do Mysql
wkamil50
18.01.2013
Witam, instalując amxbans 1.6 napotkałem problem z połączeniem serwera cs z mysql, już wiele razy instalowałem amxbansa ale jeszcze nie miałem takiego problemu, i z którym już cztery godziny się męczę
Logi:
modules:
sql.cfg:
I żeby nie było wstawiam screen gdzie jest nadane zezwolenie dla wszystkich połączeń
Strona www z amxbans chodzi na tych samych danych dostępowych co serwer cs i łączy się prawidłowo z mysql.
LInk do amxbans http://evo-amxbans.i...eu/ban_list.php
Paczkę z Amxbans pobrałem stąd http://amxx.pl/topic...-edit-23082012/
Jedyne czego nie zrobiłem, to nie dodałem serwera na stronie ponieważ zawsze kiedy instalowałem amxbans sam się dodawał...
Z góry bardzo dziękuje za pomoc w rozwiązaniu problemu.
Logi:
[AMXBans] SQL error: can't connect: 'Can't connect to MySQL server on '178.33.50.202' (110)' Connection to Steam servers successful. VAC secure mode is activated. Menu item 17 added to Menus Front-End: "AMXBans: Player-Flagging" from plugin "AMXBans Main" Menu item 18 added to Menus Front-End: "AMXBans: Disconnected Players" from plugin "AMXBans Main" Menu item 19 added to Menus Front-End: "AMXBans: Banhistory" from plugin "AMXBans Main" Menu item 20 added to Menus Front-End: "AMXBans: Screens" from plugin "AMXBans: Screens" L 01/18/2013 - 15:14:00: [amxbans_main.amxx] [AMXBans] Connection failed! L 01/18/2013 - 15:14:00: [amxbans_main.amxx] [AMXBans] Threaded Query Error, Place: 1 L 01/18/2013 - 15:14:00: [amxbans_main.amxx] [AMXBans] Message: Can't connect to MySQL server on '178.33.50.202' (110) (2003) L 01/18/2013 - 15:14:00: [amxbans_main.amxx] [AMXBans] Query statement: SELECT `motd_delay` FROM `amx_serverinfo` WHERE address = '31.186.82.99:27759' L 01/18/2013 - 15:14:21: [amxbans_main.amxx] [AMXBans] Connection failed! L 01/18/2013 - 15:14:21: [amxbans_main.amxx] [AMXBans] Threaded Query Error, Place: 5 L 01/18/2013 - 15:14:21: [amxbans_main.amxx] [AMXBans] Message: Can't connect to MySQL server on '178.33.50.202' (110) (2003) L 01/18/2013 - 15:14:21: [amxbans_main.amxx] [AMXBans] Query statement: [AMXBans] No Reasons found [AMXBans] No Reasons found in Database. Static reasons were loaded instead. L 01/18/2013 - 15:14:21: [amxbans_main.amxx] [AMXBans] No Reasons found in Database. Static reasons were loaded instead.
modules:
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 ;nvaultcstrike csx ;hamsandwich
sql.cfg:
amx_sql_host "178.33.50.202" amx_sql_user "ghost_amxbans" amx_sql_pass "**********" amx_sql_db "ghost_amxbans" amx_sql_table "admins" amx_sql_type "mysql"
I żeby nie było wstawiam screen gdzie jest nadane zezwolenie dla wszystkich połączeń
Strona www z amxbans chodzi na tych samych danych dostępowych co serwer cs i łączy się prawidłowo z mysql.
<?php $config->document_root = ""; $config->path_root = "/home..."; $config->db_host = "178.33.50.202"; $config->db_user = "ghost_amxbans"; $config->db_pass = "*******"; $config->db_db = "ghost_amxbans"; $config->db_prefix = "amx"; ?>
LInk do amxbans http://evo-amxbans.i...eu/ban_list.php
Paczkę z Amxbans pobrałem stąd http://amxx.pl/topic...-edit-23082012/
Jedyne czego nie zrobiłem, to nie dodałem serwera na stronie ponieważ zawsze kiedy instalowałem amxbans sam się dodawał...
Z góry bardzo dziękuje za pomoc w rozwiązaniu problemu.
wkamil50
19.01.2013
Nadal nie udało mi się rozwiązać problemu Miał już ktoś taki przypadek?
@Edit: Dodam, że serwer wcześniej chodził prawidłowo z tą bazą danych..
W katalogu logs sypie takimi błędami:
@Edit: Dodam, że serwer wcześniej chodził prawidłowo z tą bazą danych..
W katalogu logs sypie takimi błędami:
L 01/19/2013 - 08:22:32: Start of error session. L 01/19/2013 - 08:22:32: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20130119.log") L 01/19/2013 - 08:22:32: [MySQL] Invalid info tuple handle: 0 L 01/19/2013 - 08:22:32: [AMXX] Run time error 10 (plugin "amxbans_core.amxx") (native "SQL_Connect") - debug not enabled! L 01/19/2013 - 08:22:32: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 01/19/2013 - 08:42:58: Start of error session. L 01/19/2013 - 08:42:58: Info (map "de_airstrip") (file "addons/amxmodx/logs/error_20130119.log") L 01/19/2013 - 08:42:58: [MySQL] Invalid info tuple handle: 0 L 01/19/2013 - 08:42:58: [AMXX] Run time error 10 (plugin "amxbans_core.amxx") (native "SQL_Connect") - debug not enabled! L 01/19/2013 - 08:42:58: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 01/19/2013 - 08:46:11: Start of error session. L 01/19/2013 - 08:46:11: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20130119.log") L 01/19/2013 - 08:46:11: [MySQL] Invalid info tuple handle: 0 L 01/19/2013 - 08:46:11: [AMXX] Run time error 10 (plugin "amxbans_core.amxx") (native "SQL_Connect") - debug not enabled! L 01/19/2013 - 08:46:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 01/19/2013 - 08:47:30: Start of error session. L 01/19/2013 - 08:47:30: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20130119.log") L 01/19/2013 - 08:47:30: [MySQL] Invalid info tuple handle: 0 L 01/19/2013 - 08:47:30: [AMXX] Run time error 10 (plugin "amxbans_core.amxx") (native "SQL_Connect") - debug not enabled! L 01/19/2013 - 08:47:30: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 01/19/2013 - 08:48:41: Start of error session. L 01/19/2013 - 08:48:41: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20130119.log") L 01/19/2013 - 08:48:41: [MySQL] Invalid info tuple handle: 0 L 01/19/2013 - 08:48:41: [AMXX] Run time error 10 (plugin "amxbans_core.amxx") (native "SQL_Connect") - debug not enabled! L 01/19/2013 - 08:48:41: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 01/19/2013 - 09:09:07: Start of error session. L 01/19/2013 - 09:09:07: Info (map "de_airstrip") (file "addons/amxmodx/logs/error_20130119.log") L 01/19/2013 - 09:09:07: [MySQL] Invalid info tuple handle: 0 L 01/19/2013 - 09:09:07: [AMXX] Run time error 10 (plugin "amxbans_core.amxx") (native "SQL_Connect") - debug not enabled! L 01/19/2013 - 09:09:07: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 01/19/2013 - 09:29:34: Start of error session. L 01/19/2013 - 09:29:34: Info (map "cs_havana") (file "addons/amxmodx/logs/error_20130119.log") L 01/19/2013 - 09:29:34: [MySQL] Invalid info tuple handle: 0 L 01/19/2013 - 09:29:34: [AMXX] Run time error 10 (plugin "amxbans_core.amxx") (native "SQL_Connect") - debug not enabled! L 01/19/2013 - 09:29:34: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 01/19/2013 - 09:36:09: Start of error session. L 01/19/2013 - 09:36:09: Info (map "35hp") (file "addons/amxmodx/logs/error_20130119.log") L 01/19/2013 - 09:36:09: [MySQL] Invalid info tuple handle: 0 L 01/19/2013 - 09:36:09: [AMXX] Run time error 10 (plugin "amxbans_core.amxx") (native "SQL_Connect") - debug not enabled! L 01/19/2013 - 09:36:09: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Użytkownik wkamil50 edytował ten post 19.01.2013 09:10
wkamil50
19.01.2013
Tak, właśnie zauważyłem, że problem leży po stronie maszyny na którym serwer jest postawiony ponieważ z ciekawości uruchomiłem serwer testowy 1000 fps i tam nie miałem z tym problemu.
CS-Hejdz
19.01.2013
Nie postawisz tam AMXBans, jeżeli serwery są kupione z serwerygier to oczywiście ale jeżeli serwery z innych hostingów to nie Niby zabezpieczenie mają Po prostu trzymają aby kupowali serwery u nich ponieważ dali serwer www.
wkamil50
19.01.2013
No to chyba mają jakiś problem z zabezpieczeniami ponieważ w moim przypadku serwer cs jak i serwer www (na którym stoi amxbans) są własnością tego hostingu.
W takim przypadku temat można zamknąć ponieważ nikt po za samą administracją nie jest wstanie tutaj naprawić tego błędu.
Użytkownik wkamil50 edytował ten post 19.01.2013 14:55
W takim przypadku temat można zamknąć ponieważ nikt po za samą administracją nie jest wstanie tutaj naprawić tego błędu.
Użytkownik wkamil50 edytował ten post 19.01.2013 14:55