antiblock
https://i.imgur.com/aJ17bf7.gif
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
  • 0
roxlife1

Erro do XAMPP na hora do cadastro

Question

Boas, iniciei um servidor metin, mas ao tentar cadastrar ao servidor com o IP do hamachi, o qual está "hosteando" o server, ele dá esse seguinte erro:

 

Spoiler

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in F:\Xampp\htdocs\config.php:16 Stack trace: #0 F:\Xampp\htdocs\index.php(2): include() #1 {main} thrown in F:\Xampp\htdocs\config.php on line 16

 

Alguém sabe como resolver?

Share this post


Link to post
Share on other sites

11 answers to this question

  • 0

para que estas a usar o hamachi e o xampp? faz tudo na vb

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 0

Não sei como fazer, como faz?

Share this post


Link to post
Share on other sites
  • 0

Abre portas no router, usa o virtual box e instala la o mysql.

Share this post


Link to post
Share on other sites
  • 0

Podemos conversar sobre isso por outro lugar ? tens discord?

 

para que você me ajude nisso

Share this post


Link to post
Share on other sites
  • 0

tenho um roteador só para o meu quarto, achas que consigo fazer um host interessante?

 

minha internet é de 100mb. fibra ultra

Share this post


Link to post
Share on other sites
  • 0

Amigo, tentei fazer isto, mas não consegui, não conectou o  Mysql logo o jogo não funcionou.

 

Até então outro amigo tentou se conectar e também deu a mesma coisa, Mal selecionam personagem e volta pra tela de login.

 

Não sei o que fazer mais 

Share this post


Link to post
Share on other sites
  • 0

O erro está na linha 16 do config.php, possivelmente na conexão! 

Se meteres ai o config.php talvez consiga ajuda.

Share this post


Link to post
Share on other sites
  • 0

WOW Hamachi + Xampp por momentos pensei que tinha voltado ao passado.

 

Back to the future now 2018.

 

Coloca aí o config

Edited by Paradox (see edit history)

Share this post


Link to post
Share on other sites
  • 0

Deves estar a usar o xampp com o php 7+ onde as funções mysql já não existem.

 

Tens duas opções, ou mudas de mysql para mysqli, ou então reinstalas uma versão mais antiga com a versão php 5.6...

 

Btw, hamachi em 2k18? :wtf:

Share this post


Link to post
Share on other sites
  • 0

Troque mysql_connect() para mysqli_connect() e veja se funcionou

Share this post


Link to post
Share on other sites
  • 0
7 horas atrás, ❝Fяσтαz❞ disse:

O erro está na linha 16 do config.php, possivelmente na conexão! 

Se meteres ai o config.php talvez consiga ajuda.

Spoiler

<?php 
    /*
    |-------------------------------------------------------------------
    | Datenbank Connection Details
    |-------------------------------------------------------------------
    */
        $mysql_host     = "25.38.32.100";
        $mysql_user     = "root";
        $mysql_pass     = "****";
        $mysql_db    = "account";
    /*
    |-------------------------------------------------------------------
    | Datenbank Verbindung herstellen
    |-------------------------------------------------------------------
    */    
        mysql_connect($mysql_host, $mysql_user, $mysql_pass) OR
        die("Es konnte keine Verbindung zur Datenbank hergestellt werden.<br /> Fehlermeldung: ".mysql_error());    
        
        mysql_select_db($mysql_db) OR
        die("Die Datenbank konnte nicht benutzt werden.<br /> Fehlermeldung: ".mysql_error());
?>

 

 

Não sei como fazer por outra conexão a não ser por Hamachi pessoal. E também tentei fazer do jeito que o amigo falou, mas não consegui.

Se alguém souber alguma outra alternativa, porquê estou desempregado e não consigo arcar com os custos de um host por enquanto.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now