Register for your free account! | Forgot your password?

You last visited: Today at 15:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] Databases

Discussion on [Help] Databases within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 87
Received Thanks: 0
[Help] Databases

Hello, I have a question. I wish to host my website on an online web server but my private server is installed on my localhost. Is there a program that will send updates to the database from my localhost to the webserver which is the same database.

Example;

Character was created on the website, Database information from the website updates the database on localhost immediately.

There is probably a much simpler and easier way todo this.

Thanks.
Kyle.

I used Workbench, I've connected it remotely with my webserver database. How can I connect my source to the webserver database? I've edited the config and it's all correct as im aware (it's the same info i used with workbench for remote connection) I've allowed ALL connections to my webserver that is hosted online.
kyle191 is offline  
Old 01/31/2012, 20:12   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
Using a database hosted on an external machine is definitely not recommended.

The time it takes for database queries to run will increase dramatically.

Alternatively you could set up a connection in your database install so that it can be accessed from your webhost. Then simply alter your register script so it connects to your local host's ip for its database functionality (to register accounts and such).

Note: Will require some port forwarding at least.
pro4never is offline  
Thanks
1 User
Old 01/31/2012, 20:35   #3
 
elite*gold: 0
Join Date: Nov 2007
Posts: 87
Received Thanks: 0
Quote:
Originally Posted by pro4never View Post
Using a database hosted on an external machine is definitely not recommended.

The time it takes for database queries to run will increase dramatically.

Alternatively you could set up a connection in your database install so that it can be accessed from your webhost. Then simply alter your register script so it connects to your local host's ip for its database functionality (to register accounts and such).

Note: Will require some port forwarding at least.
Yeah I was worried about the delay for executing queries. I will have to do more research on how, a webhost can connect to my localhost database(navicat or workbench)
kyle191 is offline  
Old 01/31/2012, 20:42   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
Just make an account in sql that allows a connection from outside. Set up its permissions, username and password and use that + your ip to connect from webhost via your php script.

Then make sure ports are forwarded properly so it can bypass your firewall and you're good to go.
pro4never is offline  
Thanks
1 User
Old 01/31/2012, 20:50   #5
 
elite*gold: 0
Join Date: Nov 2007
Posts: 87
Received Thanks: 0
Quote:
Originally Posted by pro4never View Post
Just make an account in sql that allows a connection from outside. Set up its permissions, username and password and use that + your ip to connect from webhost via your php script.

Then make sure ports are forwarded properly so it can bypass your firewall and you're good to go.
That makes everything much more clear, Just now I got to edit the register.php file, and make this execute to my database when submitted.

Would I just need to Port Forward 3306?
kyle191 is offline  
Old 01/31/2012, 23:56   #6
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,212
Received Thanks: 4,115
Watch out with how you set up your php if you're going to have an open sql connection...
If you expose too much data in your php/javascript, someone can just come along and change their gears, level, account data, etc.
Spirited is offline  
Reply


Similar Threads Similar Threads
[Help] Upgrading the Databases.
06/03/2011 - Shaiya Private Server - 5 Replies
Hey community, I was wondering who will explain how to upgrade the Databases from 4.5 to Ep 5, I have the databases, also I know that you need an .exe, but not too sure which one. So Could anyone point me in the right direction or supply a copy of their own? Many thanks! Update* I have the Ep.5 ps_game.exe
Shaiya EP5 Databases MAP 71
06/01/2011 - Shaiya Private Server - 5 Replies
Hey wenn ich meinen Server mit dem SQL Manager starten möchte, sagt er das MAP71 nicht geladen werden kann. 2011-01-05 14:26:13 data/map/71.svmap map open failed 2011-01-05 14:26:13 map 71 Load failed Hat wer die MAp71 oder weiß wieman diesen fehler beseitigt?
[Help] Upgrading the Databases.
05/30/2011 - Shaiya - 0 Replies
hey community. I was wondering if anyone could help me with upgrading my databases from 4.5 (fully working) to an Ep.5 database I have the ps_game.exe for Ep5 i'm just confused on how to make the updates Many thanks
Cabal databases
09/07/2009 - Cabal Private Server - 2 Replies
Hi elitepvperslers Wollte mal fragen ob jemand von euch die Cabal databases uploaden, oder einen Link posten könnte. Es ist wirklich sehr wichtig!!! Danke schonmal im voraus. mfg ruby
[Help]Databases.
07/26/2009 - Cabal Private Server - 0 Replies
Hello all... I installed and configured the centos and wmare and they are working i think... Now what is left is to configure the SQL server... And there the problem began... I don't have any databases for cabal... Can somebody tell me where can i get databases or download?



All times are GMT +2. The time now is 15:05.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.