Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 03:34

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

Advertisement



[Help] How do I connect website host to database vps host

Discussion on [Help] How do I connect website host to database vps host within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2007
Posts: 20
Received Thanks: 1
[Help] How do I connect website host to database vps host

Hi guys,

I got a website hosted (.php) on godaddy with a domain name
+ I got a conquer private server hosted on a vps (NFO)

I wanna know how to make the connection from web site to database vps ?
so people will be able to register from website to database

How do I set up my Config.php ?

For this exemple: web host ip: AAAAAA , vps ip: BBBBBB

Mysql user:CCCC pass: DDDD database name:EEEEE

<?php

$serveraddress='';
$serverport='';
$dbhost=''; //Hostname
$dbuser='; //MySql User
$dbpasswd=''; //MySql Password
$dbname=''; //DB For accounts
$description=''; // server description
$servername=''; // Server name appear on pages titles
$serverdesc='';
//////////////////////////////////////////////////////////

$rs = mysql_connect('127.0.0.1', $dbuser, $dbpasswd) or die(mysql_error());

mysql_select_db($dbname,$rs) or die(mysql_error());

if ($_GET['act']=='logout'){
session_destroy();
?>
<META HTTP-EQUIV="REFRESH" CONTENT="1;URL=index.php">
<?php
}

$acc=$_SESSION['acc'];
$uid=$_SESSION['uid'];
?>

Thanks for help !
rexorqc is offline  
Old 01/14/2014, 05:12   #2
 
littlechris95's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 150
Received Thanks: 11
You must create a unique user to host, follow the steps:

First step:

Second step:

Third step:

Obs: In "Host" you put the ip of your hosting. After that you use these settings in the Config.php
littlechris95 is offline  
Old 01/14/2014, 12:09   #3
 
Yupmoh's Avatar
 
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 285
Yeah, He will also need a registration page that would show on his website allowing people to enter their login info and create an account.
Yupmoh is offline  
Reply


Similar Threads Similar Threads
[HELP] socket_connect: HOST 220.95.239.40:7120, could not connect.
04/04/2014 - Metin2 Private Server - 22 Replies
My syserr shows socket_connect: HOST 220.95.239.40:7120, could not connect. and Server start successful but i have I can not log in. WTF ? Port and files is OK What is wrong ?
CF NA - Failed to connect to Host Server
08/16/2013 - CrossFire - 2 Replies
Hallo zusammen, Spiele schon seit einiger Zeit CF NA mit einem WLAN Stick und habe mich nun entschieden auf ein Lan Kabel umzusteigen damit die Verbindung besser ist. Soweit so gut hab nun einen 11 Ping und das Spiel läuft meiner Meinung nach flüssiger, allerdings bricht nun in jedem Match die Verbindung ab und ich bekomm die Meldung 'Failed to connect to Host Server' ( oder so ähnlich ). Dieses Problem hatte ich mit dem WLAN Stick nicht, obwohl ich nur einen Balken Internetverbindung...
Failed connect to host server
10/05/2011 - CrossFire - 12 Replies
Hallo Epvp durch infos von einer person aus dem thrad is folgendes KEINE ANGST Wenn da steht bei dem Login Failed connect to Server Ist das weil der LOGIN Noch bis 14 Inaktiv ist Viel spass DieCFFiesela Game protection offline (for 1 min) Login server offline (for 104 min)
Failed to connect to the host server?
06/20/2011 - CrossFire - 9 Replies
Hey Leute immer wen ich ein game joine und 30 sek spiele kommt das :Failed to connect to the host server. Warum bekomme ich den error? Ich habe ihn erst seit gestern.



All times are GMT +1. The time now is 03:36.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.