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

SQL Can't connect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JustinEdw
New Member
Join Date: Jul 2008
Old 07-30-2008 , 06:58   SQL Can't connect
Reply With Quote #1

Ok, usually I have no problems with this kind of stuff but I am totally stumped on this.

I setup a database in cpanel for sourcemod, executed all the appropriate .sql files to set it up, and I went to remote mysql and added my gameserver ip address: 208.167.234.173 to the remote access list.

Then I edited my databases config file for sourcemod like this.
Code:
 "Databases"
{
    "driver_default"        "mysql"
    
    "default"
    {
        "driver"            "mysql"
        "host"            "69.61.121.2"
        "database"      "kkoclan_sourcemod"
        "user"             "kkoclan_sourcem"
        "pass"            "******"
        //"timeout"            "0"
        //"port"            "0"
    }
    
    "storage-local"
    {
        "driver"            "sqlite"
        "database"            "sourcemod-local"
    }
}
Moved the admin-sql-threaded.smx & sql-admin-manager.smx to the plugins folder. Once I connected I tryed adding using a command and as soon as I do the server freezes up and I get this in the logs.

Code:
L 07/30/2008 - 05:49:20: [sql-admin-manager.smx] Could not connect to database: [2003]: Can't connect to MySQL server on '69.61.121.2' (110)
L 07/30/2008 - 05:49:20: [admin-sql-threaded.smx] Failed to connect to database: [2003]: Can't connect to MySQL server on '69.61.121.2' (110)
I have tryed everything but I cannot seem to figure this out. Only thing I can think of is somehow I got the wrong ip address setup in remote mysql connection.

Last edited by JustinEdw; 07-30-2008 at 07:01.
JustinEdw is offline
JustinEdw
New Member
Join Date: Jul 2008
Old 07-30-2008 , 12:20   Re: SQL Can't connect
Reply With Quote #2

Ok I narrowed this down to I must have the wrong server ip in the access list. Unfortunately I rent a server from a sever company so I have no idea what other ip address are on the box or which one Sourcemod is using to try and connect to mysql. Does anyone know how to get sourcemod to tell which ip its trying to use?
JustinEdw is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 07-30-2008 , 13:32   Re: SQL Can't connect
Reply With Quote #3

Tell your company to use an access line such as:

Code:
GRANT ALL PRIVILEGES ON (database name).* TO (database login)@'%' IDENTIFIED BY '(database password)';
They will either do it or ask you what the hell you are trying to do, in which case you should just tell them you are trying to access MySQL remotely. You would be surprised how helpful hosting companies are if you are truthful to them!
__________________
msleeper is offline
JustinEdw
New Member
Join Date: Jul 2008
Old 07-30-2008 , 22:47   Re: SQL Can't connect
Reply With Quote #4

Yeah, They basically told me they do not support remote connection to mysql, and they can't help me. Anyone know a good webhosting company that does?
JustinEdw is offline
JProReTaRD
Member
Join Date: May 2009
Location: Denmark, KBH
Old 05-15-2009 , 17:21   Re: SQL Can't connect
Reply With Quote #5

surftown
JProReTaRD 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 21:09.


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