AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Amx bans mysql error (https://forums.alliedmods.net/showthread.php?t=292942)

MaXs 01-18-2017 13:06

Amx bans mysql error
 
I set everything right, added server in mysql, edited sql.cfg but:
[amxbans_main.amxx] [AMXBans] Connection failed!
L 01/18/2017 - 20:02:29: [amxbans_main.amxx] [AMXBans] Threaded Query Error, Place: 17
L 01/18/2017 - 20:02:29: [amxbans_main.amxx] [AMXBans] Message: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 (2013

Sql.cfg :

amx_sql_host "185.80.128.32"
amx_sql_user "frags_banas"
amx_sql_pass "PASSWORD HIDDEN"
amx_sql_db "frags_banas"
amx_sql_table "amx"
amx_sql_type "mysql"
amx_sql_timeout "60"

ko22009 01-19-2017 17:05

Re: Amx bans mysql error
 
You have problem with query.
Send your chunk of code of query.
Did you check connection with mysql?
Set in front of this plugin in plugins.ini, debug. For example: amxbans_main.amxx debug;
And you get result stack of trace.

D3XT3R 01-27-2017 14:15

Re: Amx bans mysql error
 
Try use this
Quote:

// SQL configuration file
// File location: /addons/amxmodx/configs/sql.cfg

//Skopiuj tekst i wklej do pliku sql.cfg - folder addons/amxmodx/configs/

//Plik wygenerowany na stronie mybans.eu


amx_sql_host ""
amx_sql_user ""
amx_sql_pass ""
amx_sql_db ""
amx_sql_table "amx"
amx_sql_type "mysql"
and you should give yours vps permission host from ur domain of amxbans

MaXs 01-29-2017 12:31

Re: Amx bans mysql error
 
i fixed myself like week ago but thanks.


All times are GMT -4. The time now is 20:42.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.