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

Issue Can't access databases.cfg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
meister
Junior Member
Join Date: Nov 2014
Location: Singapore
Old 11-15-2014 , 07:23   Can't access databases.cfg
Reply With Quote #1

Hello,

I followed all the instructions on github regarding the installation of the store plugin.

However, when it came to entering the details for the plugin to read via databases.cfg, it gives me an error where it is unable to access the database. My webserver is hosted by PurePings and according to them, I have configured everything and it should work.

I need help.

Any ideas?
meister is offline
meister
Junior Member
Join Date: Nov 2014
Location: Singapore
Old 11-15-2014 , 20:17   Re: Can't access databases.cfg
Reply With Quote #2

I found the error.

L 11/15/2014 - 18:265: [admin-sql-prefetch.smx] Could not connect to database "default": [2003]: Can't connect to MySQL server on 'localhost' (10061)
L 11/15/2014 - 18:267: [admin-sql-prefetch.smx] Could not connect to database "default": [2003]: Can't connect to MySQL server on 'localhost' (10061)
L 11/15/2014 - 18:268: [admin-sql-prefetch.smx] Could not connect to database "default": [2003]: Can't connect to MySQL server on 'localhost' (10061)
L 11/15/2014 - 18:269: [admin-sql-threaded.smx] Failed to connect to database: [2003]: Can't connect to MySQL server on 'localhost' (10061)
meister is offline
meister
Junior Member
Join Date: Nov 2014
Location: Singapore
Old 11-16-2014 , 07:36   Re: Can't access databases.cfg
Reply With Quote #3

Does anyone have a fix?
meister is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-16-2014 , 10:58   Re: Can't access databases.cfg
Reply With Quote #4

Is your server running on the same machine as your webserver? If not, then you should be not be using localhost
__________________
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
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 11-16-2014 , 18:39   Re: Can't access databases.cfg
Reply With Quote #5

As YamiKaitou said:
If the gameserver is not running on the same machine as the webserver, using 127.0.0.1 / local is wrong.

You could try:
* Using the Public IP of the Webserver (DB Server)
* Using the domain name of the Webserver (DB Server)
* Asking to support for the proper ip to use when accessing the db "externally" (They might have to enable external access for the ip of the gameserver)
__________________
Arrow768 is offline
meister
Junior Member
Join Date: Nov 2014
Location: Singapore
Old 11-17-2014 , 23:04   Re: Can't access databases.cfg
Reply With Quote #6

Quote:
Originally Posted by YamiKaitou View Post
Is your server running on the same machine as your webserver? If not, then you should be not be using localhost
Nope, it isn't on the same machine.

Quote:
Originally Posted by Arrow768 View Post
As YamiKaitou said:
If the gameserver is not running on the same machine as the webserver, using 127.0.0.1 / local is wrong.

You could try:
* Using the Public IP of the Webserver (DB Server)
* Using the domain name of the Webserver (DB Server)
* Asking to support for the proper ip to use when accessing the db "externally" (They might have to enable external access for the ip of the gameserver)
Trying this now.

So that means in the "localhost" sections I change it to fit with my database settings?
meister is offline
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 11-18-2014 , 14:08   Re: Can't access databases.cfg
Reply With Quote #7

So you have got one server, that is your database server, your webserver and your gameserver ?

If thats correct:
* Try using 127.0.0.1 as db host
* Can the webpanel connect to the database ?
__________________
Arrow768 is offline
meister
Junior Member
Join Date: Nov 2014
Location: Singapore
Old 11-18-2014 , 19:31   Re: Can't access databases.cfg
Reply With Quote #8

Quote:
Originally Posted by Arrow768 View Post
So you have got one server, that is your database server, your webserver and your gameserver ?

If thats correct:
* Try using 127.0.0.1 as db host
* Can the webpanel connect to the database ?
By webpanel do you mean the one you made for store?
meister is offline
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 11-19-2014 , 20:56   Re: Can't access databases.cfg
Reply With Quote #9

Yes, I mean the webpanel for store.
__________________
Arrow768 is offline
meister
Junior Member
Join Date: Nov 2014
Location: Singapore
Old 11-20-2014 , 04:00   Re: Can't access databases.cfg
Reply With Quote #10

I haven't managed to install the webpanel.

I'll do it tomorrow. I changed all the settings to use the IPs you listed instead for localhost but to no avail.
meister 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:39.


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