Connecting to database.

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Jun 26, 2011 8:03 am

Connecting to database.

Post by .=QUACK=.Major.Pain »

ok - Having an issue connecting to a database.

To start, I am running 2 dayz servers. 1 Chernarus and 1 Lingor.
I can't use the same server for both databases because they both have to be named dayz. And since the maps are different and the spawn points are different, we need 2 databases.

So I tried installing WAMP on my VDS here, and am trying to connect from another server to the one on my VDS here, but it won't allow the connection.

Do I have to whitelist the ip somehow to allow the connection?
Like I would have to allow remoteSQL on web hosting?
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
User avatar
hiimcody1
Former staff
Former staff
Posts: 1617
Joined: Wed Dec 28, 2011 4:59 pm

Re: Connecting to database.

Post by hiimcody1 »

You will need to edit mysql to not bind to 127.0.0.1. Have it bind to your VDS's IP address.

I don't remember the specific config file WAMP uses or I'd have more info as to where it's located.
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: Connecting to database.

Post by .=QUACK=.Major.Pain »

Haven't figured it out.
This stuff gives me a headache. lol

Taking a break.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
rustydusty1717
This is my homepage
This is my homepage
Posts: 645
Joined: Sun Sep 20, 2009 6:15 pm

Re: Connecting to database.

Post by rustydusty1717 »

Yes, SQL needs to be bound to an IP or DNS name.
Image
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: Connecting to database.

Post by .=QUACK=.Major.Pain »

Ok

Went through many of the cfg and conf files but nothing I could see.
the .conf files were all set to only 127.0.0.1 access, but changed it as it said to ALLOW all.

Also set it up as Put Online but that didn't work either.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: Connecting to database.

Post by .=QUACK=.Major.Pain »

Didn't have to do anything.

I forgot when I setup a user for the database, I was using localhost.
Had to change this to allow access from my other server ip.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
Post Reply