Jump to content

Problema com ligação ao MySQL em servidor web


Amilcar Gonzalez
 Share

Go to solution Solved by Rui Carlos,

Recommended Posts

Boas pessoal, acabei de alojar o meu site num servidor web, mas ainda nao posso ver o meu site online mesmo por causa de uns problemas que me esta a dar, só que nao percebo os problemas que da.

Aqui mando algumas linhas dos erros que me da:

[Fri Sep 26 15:14:07 2014] [warn] [client 94.132.12.42] mod_fcgid: stderr: PHP Warning: mysqli_connect(): (28000/1045): Access denied for user 'root'@'localhost' (using password: NO) in /data/vhosts/institutodeingles.pt/httpdocs/ligacao.php on line 7

Esta aqui a minha pasta ligação.php:

<?php
$host = "80.172.241.23";
$user ="unteh_instituto@localhost";
$pass = "nao mostro";
$base = "untehot17399com18816_institutoespinho";
$conexao = mysqli_connect ($host, $user, $pass) or die (mysql_error());
mysqli_select_db ($conexao,$base) or die (mysqli_error());

?>

Alguem tem alguma noção do que seja isto??? 😞 Agradecia uma ajudinha.

Link to comment
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
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.