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

connect to database help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Skidogg88
Junior Member
Join Date: Jan 2010
Old 03-05-2014 , 05:23   connect to database help
Reply With Quote #1

ok so i have sourcebans working successfully on one server, i try adding a second as well as a test third and i get this error

[sourcebans.smx] Database failure: [2003]: Can't connect to MySQL server on '198.136.54.104' (10060).


now to cover the obvious, yes i have updated the sourcebans.cfg with the correct server id, as well as used the same databases.cfg from the working server. i have contacted the web host and they have whitelisted the ip's for me already. as well as contacted the game server host to see if they needed to open any ports or anything. ive spent the past few hours racking my brain on this and im out of ideas. anyone have any suggestions/ideas?
Skidogg88 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-05-2014 , 06:34   Re: connect to database help
Reply With Quote #2

You either have the wrong database IP or your host doesn't allow remote SQL connections
__________________
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
Skidogg88
Junior Member
Join Date: Jan 2010
Old 03-05-2014 , 08:08   Re: connect to database help
Reply With Quote #3

Well maybe you can explain this, I have a server working and connecting to the database fine, so I know they allow remote connections, and it's the same database file on all 3 servers so how can it be the wrong ip?
Skidogg88 is offline
Skidogg88
Junior Member
Join Date: Jan 2010
Old 03-05-2014 , 08:14   Re: connect to database help
Reply With Quote #4

With the error I'm getting, adding a second user to the database prolly wouldn't help would it? I'm like out of ideas on how to get it to work :/
Skidogg88 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-05-2014 , 08:26   Re: connect to database help
Reply With Quote #5

The only thing I can recommend is to contact your host. I just tried connecting to it and got the following

Code:
# mysql -h 198.136.54.104
ERROR 2003 (HY000): Can't connect to MySQL server on '198.136.54.104' (110)
# telnet 198.136.54.104 3306
Trying 198.136.54.104...
telnet: connect to address 198.136.54.104: Connection timed out
# ping -c 1 198.136.54.104
PING 198.136.54.104 (198.136.54.104) 56(84) bytes of data.
64 bytes from 198.136.54.104: icmp_seq=1 ttl=53 time=206 ms

--- 198.136.54.104 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 206ms
rtt min/avg/max/mdev = 206.277/206.277/206.277/0.000 ms
#
__________________
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
Skidogg88
Junior Member
Join Date: Jan 2010
Old 03-05-2014 , 11:28   Re: connect to database help
Reply With Quote #6

Well last night they said they were able to connect to the database last night from their end, and the login info I copied n pasted from the config worked. I'll talk with them again tonight and see if anything I can figure something out, any tips on what exactly I should recommend them checking? Port types? I know it's 3306 the server tries to connect to the database.
Skidogg88 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 03-05-2014 , 11:35   Re: connect to database help
Reply With Quote #7

Do they allow your gameserver to communicate to the database server?
WildCard65 is offline
Skidogg88
Junior Member
Join Date: Jan 2010
Old 03-05-2014 , 14:48   Re: connect to database help
Reply With Quote #8

Quote:
Originally Posted by WildCard65 View Post
Do they allow your gameserver to communicate to the database server?
well i did ask them about that and here's what they said "Your game server is setup to allow all outbound port traffic. Your server should be able to send data on any port."
Skidogg88 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 03-05-2014 , 15:24   Re: connect to database help
Reply With Quote #9

No I mean the hosting company that hosts the database server, do they allow remote connections to it?
WildCard65 is offline
Skidogg88
Junior Member
Join Date: Jan 2010
Old 03-05-2014 , 15:51   Re: connect to database help
Reply With Quote #10

yes, i have one working server connecting to it without any problem, and i was just speaking with them for the past hour trying to figure it out, and they said if the database can connect to the server, then the server should have no problem connecting to the database.

ive tried everything i can think of D: including reinstalling the mod on both of the non working servers
Skidogg88 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 03:00.


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