Jump to content

? servers

? players online

Sourceban website - Can't connect to MySQL server on 'xxxxxxxxxxxx.com' (4)

Recommended Posts


  • Content Count:  3052
  • Joined:  08/30/09
  • Status:  Offline

Hello,

I helped a friend setup sourcebans for his server and now all of a sudden No one can connect to the website. WE get the error message

 

[b]Warning: mysql_connect() [[url="http://db.site.nfoservers.com/bans/function.mysql-connect"]function.mysql-connect[/url]]: Can't connect to MySQL server on 'db.site.nfoservers.com' (4) in[b]/usr/www/db/public/bans/includes/adodb/drivers/adodb-mysql.inc.php on line [b]358
Can't connect to MySQL server on 'db.site.nfoservers.com' (4) 

SQL Query type: CONNECT
Script: '/bans/index.php'
SQL Query: db.site.nfoservers.com

[/b][/b][/b][b][b][b]SQL Params: db_sourcebans
[/b][/b][/b]

 

Any idea why it is doing this all of a sudden?

Link to comment

  • Content Count:  3052
  • Joined:  08/30/09
  • Status:  Offline

This is a mySQL error when the database details provided are incorrect. Have you got the correct DB username, password and name correct?

 

 

I'll go in and check.. He hasn't touched anything since i set it up. I'll let you know

Link to comment

  • Content Count:  3791
  • Joined:  08/08/09
  • Status:  Offline

I'll go in and check.. He hasn't touched anything since i set it up. I'll let you know

 

Has it been working before? Also, make sure that the user where the database is stored as all the correct privileges.

Link to comment

  • Content Count:  3178
  • Joined:  08/06/08
  • Status:  Offline

Should be fixed by now, or at least be fixed soon. I see you are on a DB server from NFO, which is being DDoSed as the last day or two. They have it under control (or close to), so no stress. :)

Link to comment

  • Content Count:  3052
  • Joined:  08/30/09
  • Status:  Offline

Has it been working before? Also, make sure that the user where the database is stored as all the correct privileges.

 

 

Yes I set it up about 3 months ago and today is just stopped working..

 

Im waiting for him ti respond to me with the info for ftp so i can check

Link to comment

  • Content Count:  3178
  • Joined:  08/06/08
  • Status:  Offline

Ok so I got it to work again.. Strange...

 

I had to change the host on both the config.php and databases.cfg from xxxxx.com to localhost..

 

Dunno y

 

Could be because either:

- External connection is disallowed.

- Because of the DDoS external connections are hard to maintain, so through internal connection there is no interruption.

- Or something else I missed. :p

 

Sent from my GT-I9003 using Tapatalk 2

Link to comment

Reply to Thread

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...