Problem s instaliranjem travianx? db problem

Hardware, software, mobiteli, programiranje, internet...

Moderator: Bobi

Post Reply
User avatar
Janjicar
Posts: 4514
Joined: 04/08/2011 13:23
Location: Tuzla :)
Has thanked: 4 times

Problem s instaliranjem travianx? db problem

Post by Janjicar » 24/01/2012 20:53

Znaci upload sam skriptu i sve i krenuo da instaliram i popunim podatke za Sql related
tj Hostname Username Databasename Password ali kada kliknem na submit pise mi sljedece

Access denied for user 'xth_10099869'@'localhost' (using password: NO)

Probao sam sve a podaci sam siguran da su tacni ( i to sam mijenjao ali jock, isto sve opet )

Nadam se da ima neko ko se razumije u ovo

Hvala unaprijed


casanova123
Posts: 1488
Joined: 04/04/2011 22:16

Re: Problem s instaliranjem travianx? db problem

Post by casanova123 » 24/01/2012 22:33

daj link odakle ti skripta.. :D


User avatar
Janjicar
Posts: 4514
Joined: 04/08/2011 13:23
Location: Tuzla :)
Has thanked: 4 times

Re: Problem s instaliranjem travianx? db problem

Post by Janjicar » 25/01/2012 08:10

Svaka cast (Y) nemam rijeci (Y) to je to
hvala ti


Ima li neko stvarno da zna ovo ? trazio sam i na drugim forumima i pregledao gg al nema nista :/

User avatar
gentoo
System
Posts: 1477
Joined: 05/01/2008 12:10
Location: Ze
Has thanked: 4 times
Been thanked: 10 times
Contact:

Re: Problem s instaliranjem travianx? db problem

Post by gentoo » 25/01/2012 09:31

Na cistom engleskom ti pise:

Access denied for user 'xth_10099869'@'localhost' (using password: NO)

znaci podaci ti nisu tacni.. koliko god ti tvrdio da jesu

:mrgreen:

User avatar
Janjicar
Posts: 4514
Joined: 04/08/2011 13:23
Location: Tuzla :)
Has thanked: 4 times

Re: Problem s instaliranjem travianx? db problem

Post by Janjicar » 25/01/2012 09:50

Podaci su sigurno dobro
Image

A evo i slika

itekako
Posts: 537
Joined: 21/12/2011 11:17
Been thanked: 3 times

Re: Problem s instaliranjem travianx? db problem

Post by itekako » 25/01/2012 09:57

Janjicar wrote:Podaci su sigurno dobro
Image

A evo i slika
a sto izofira sifru? :D

User avatar
gentoo
System
Posts: 1477
Joined: 05/01/2008 12:10
Location: Ze
Has thanked: 4 times
Been thanked: 10 times
Contact:

Re: Problem s instaliranjem travianx? db problem

Post by gentoo » 25/01/2012 09:58

Pa onda procackaj po kodu tog traviana jer se ocigledno pokusava zakaciti na localhost a trebalo bi na sql103....

User avatar
Janjicar
Posts: 4514
Joined: 04/08/2011 13:23
Location: Tuzla :)
Has thanked: 4 times

Re: Problem s instaliranjem travianx? db problem

Post by Janjicar » 25/01/2012 10:03

itekako wrote:
Janjicar wrote:Podaci su sigurno dobro
Image

A evo i slika
a sto izofira sifru? :D
Mah free hosting je a ko hoce da udje nek kaze ja cu mu reci sve nek se ne muci :)

@gentoo
U kojem bi to trebalo da bude fajlu ?

EDIT: evo u database.php u Install-Include folderu

Code: Select all

<?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;
}
?>

Kruler
Posts: 535
Joined: 21/02/2008 10:06

Re: Problem s instaliranjem travianx? db problem

Post by Kruler » 25/01/2012 10:19

Pravo mi je mrsko podići aplikaciju samo da bih to pogledao pa ću naslijepo da probam.

Podešavanja unosiš kada pokreneš install skriptu. Dakle, možeš je ponovo pokrenuti i unijeti ispravna.

Koliko vidim https://github.com/advocaite/Travianx/b ... se.php#L12 , a nisam baš najsigurniji da je to to, prilikom "instalacije" se kreira fajl u kom se drže podešavanja...

Code: Select all

GameEngine/config.php
...pa vjerovatno u njemu možeš promjeniti paramtere.

User avatar
Janjicar
Posts: 4514
Joined: 04/08/2011 13:23
Location: Tuzla :)
Has thanked: 4 times

Re: Problem s instaliranjem travianx? db problem

Post by Janjicar » 25/01/2012 19:03

Moze se tema arhivirat
Problem rijesen


Free hosting je u pitanju i najednom je proradilo...
Hvala na infos.

Post Reply