Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Error when install travianX V6 Please help me ! :(

Status
Not open for further replies.
Initiate Mage
Joined
Jun 10, 2012
Messages
3
Reaction score
0
Helooo

I try to install travian V6 in my webhost
I have upload all of the file but when I try to install
it is error in Step 2 (After intro>Configuration Then When I clik submit I Got error message like this


PHP:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'u962787536_iwa'@'localhost' (using password: YES) in /home/u962787536/public_html/install/include/database.php on line 30
Access denied for user 'u962787536_iwa'@'localhost' (using password: YES)


Please help me ! :( Ok :D
Thank you
 
Initiate Mage
Joined
Jun 10, 2012
Messages
3
Reaction score
0
so it will work if i use travianZ ???
And What's wrong with TravianX ???

Pls reply :)
 
Initiate Mage
Joined
Jun 10, 2012
Messages
3
Reaction score
0
maybe it will work when you will try with travianz.
if not, is host problem.
anyway, travianz is better with travianx.

maybe it will work when you will try with travianz.
if not, is host problem.
anyway, travianz is better with travianx.

Hi,...

I found in google it ask me to change the database because it say error on line 30 so
so i change the default database on line 30 in install/include/database.php
into this :

PHP:
<?php
//////////////////////////////////////////////////////////////////////////////////////////////////////
//                                             TRAVIANX                                             //
//            Only for advanced users, do not edit if you dont know what are you doing!             //
//                                Made by: Dzoki & Dixie (TravianX)                                 //
//                              - TravianX = Travian Clone Project -                                //
//                                 DO NOT REMOVE COPYRIGHT NOTICE!                                  //
//////////////////////////////////////////////////////////////////////////////////////////////////////

include("constant.php");

class MYSQLi_DB {

	var $connection;

	function MYSQLi_DB() {
		$this->connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB) or die(mysqli_error());
	}
		function query($query) {
		return $this->connection->query($query);
		}

};

class MYSQL_DB {

	var $connection;

	function MYSQL_DB() {
		$this->connection = mysql_connect(mysql.idhostinger.com, iwake, travian) or die(mysql_error());
		mysql_select_db(SQL_DB, $this->connection) or die(mysql_error());
	}

	function mysql_exec_batch ($p_query, $p_transaction_safe = true) {
  if ($p_transaction_safe) {
      $p_query = 'START TRANSACTION;' . $p_query . '; COMMIT;';
    };
  $query_split = preg_split ("/[;]+/", $p_query);
  foreach ($query_split as $command_line) {
    $command_line = trim($command_line);
    if ($command_line != '') {
      $query_result = mysql_query($command_line);
      if ($query_result == 0) {
        break;
      };
    };
  };
  return $query_result;
} 

	function query($query) {
		return mysql_query($query, $this->connection);
	}
};

if(DB_TYPE) {
	$database = new MYSQLi_DB;
}
else {
	$database = new MYSQL_DB;
}
?>



This is The ORIGINAL File

PHP:
<?php
//////////////////////////////////////////////////////////////////////////////////////////////////////
//                                             TRAVIANX                                             //
//            Only for advanced users, do not edit if you dont know what are you doing!             //
//                                Made by: Dzoki & Dixie (TravianX)                                 //
//                              - TravianX = Travian Clone Project -                                //
//                                 DO NOT REMOVE COPYRIGHT NOTICE!                                  //
//////////////////////////////////////////////////////////////////////////////////////////////////////

include("constant.php");

class MYSQLi_DB {
	
	var $connection;
	
	function MYSQLi_DB() {
		$this->connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB) or die(mysqli_error());
	}
		function query($query) {
		return $this->connection->query($query);
		}
		
};

class MYSQL_DB {
	
	var $connection;
	
	function MYSQL_DB() {
		$this->connection = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error());
		mysql_select_db(SQL_DB, $this->connection) or die(mysql_error());
	}
	
	function mysql_exec_batch ($p_query, $p_transaction_safe = true) {
  if ($p_transaction_safe) {
      $p_query = 'START TRANSACTION;' . $p_query . '; COMMIT;';
    };
  $query_split = preg_split ("/[;]+/", $p_query);
  foreach ($query_split as $command_line) {
    $command_line = trim($command_line);
    if ($command_line != '') {
      $query_result = mysql_query($command_line);
      if ($query_result == 0) {
        break;
      };
    };
  };
  return $query_result;
} 

	function query($query) {
		return mysql_query($query, $this->connection);
	}
};

if(DB_TYPE) {
	$database = new MYSQLi_DB;
}
else {
	$database = new MYSQL_DB;
}
?>

Something wrong with this ???
Please help me buddies
 
Status
Not open for further replies.
Back
Top