Raised This Month: $51 Target: $400
 12% 

AMXBANS Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
H@M
Junior Member
Join Date: Jun 2013
Old 03-16-2014 , 17:16   AMXBANS Help
Reply With Quote #1

Well, My problem is that my server doesn't connect to AMXBANS database when I'm trying to connect it to my website.


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

// *NOTE* Linux users may encounter problems if they specify "localhost" instead of "127.0.0.1"
// We recommend using your server IP address instead of its name

// *NOTE* amx_sql_type specifies the DEFAULT database type which admin.sma will use.

amx_sql_host "*******.fatcowmysql.com"
amx_sql_user "amxbans"
amx_sql_pass "*********"
amx_sql_db "amxbans"
amx_sql_table "mysql"
amx_sql_type "mysql"
This is the problem that shows in the logs:

Quote:
[amxbans_core.amxx] [AMXBANS] Index: 10 |
[amxbans_core.amxx] [AMXBANS] Index: 8
[amxbans_core.amxx] [AMXBANS] Index: 8 | Name:
[amxbans_main.amxx] [AMXBans] Connection failed!
[amxbans_main.amxx] [AMXBans] Message: Unknown MySQL server host '*******.fatcowmysql.com' (2) (2005)
[amxbans_main.amxx] [AMXBans] Query statement: SELECT `fid`, `reason`, `created`, `length` FROM `amx_flagged` WHERE `player_id` = 'STEAM_ID_LAN' OR `player_ip` = '149.200.184.91' ORDER BY `length` ASC;
[AMXBans] Connection failed!
[AMXBans] Message: Unknown MySQL server host '*******.fatcowmysql.com' (2) (2005)
[amxbans_main.amxx] [AMXBans] Query statement: SELECT COUNT(*) FROM `amx_bans` WHERE ((`player_id` = 'STEAM_ID_LAN' AND `ban_type` = 'S') OR (`player_ip` = '149.200.184.91' AND `ban_type` = 'SI')) AND `expired` = '1';

Btw, the host that I actually use, I'm using it in AMXBANS setup and worked perfectly. Thanks!
H@M is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-16-2014 , 17:28   Re: AMXBANS Help
Reply With Quote #2

The error message is pretty self explanatory
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
H@M
Junior Member
Join Date: Jun 2013
Old 03-16-2014 , 17:41   Re: AMXBANS Help
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
The error message is pretty self explanatory

I used this host for AMXBANS setup in my website.

Last edited by H@M; 03-16-2014 at 17:42.
H@M is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-16-2014 , 17:43   Re: AMXBANS Help
Reply With Quote #4

Again, the error is right in front of you
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
H@M
Junior Member
Join Date: Jun 2013
Old 03-16-2014 , 17:58   Re: AMXBANS Help
Reply With Quote #5

I didn't post this thread for someone to say that the error is obvious... I need more explanation and an obvious solution.
H@M is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-16-2014 , 17:58   Re: AMXBANS Help
Reply With Quote #6

Well, lets start with "What is the correct SQL Hostname/IP?"
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
H@M
Junior Member
Join Date: Jun 2013
Old 03-16-2014 , 18:09   Re: AMXBANS Help
Reply With Quote #7

Host : 3arabcoolcom.fatcowmysql.com
H@M is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-16-2014 , 18:13   Re: AMXBANS Help
Reply With Quote #8

Unable to resolve that hostname, hence why it is unknown to MySQL
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
H@M
Junior Member
Join Date: Jun 2013
Old 03-16-2014 , 18:22   Re: AMXBANS Help
Reply With Quote #9

I put everything correctly and when I tried to check the logs it gives me that error and the Host name was running when I was doing the setup.

Last edited by H@M; 03-16-2014 at 18:23.
H@M is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-16-2014 , 18:23   Re: AMXBANS Help
Reply With Quote #10

Contact your host as that DNS name does not resolve to an IP
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:23.


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