0
When I use my form to search in php connection, this error appears:
Access denied for user 'clientes_assoc'@'localhost' (using password: YES)
My connection is like this:
<?php
$hostdb = "localhost";
$userdb = "clientes_assoc";
$passdb = "senha";
$tabledb = "assocs";
$conecta = mysql_connect($hostdb, $userdb, $passdb) or die (mysql_error());
@mysql_select_db($tabledb, $conecta) or die ("Erro ao conectar com o banco de dados");
?>
I do not know how to solve, since the user is with all permissions.
Already tested these credentials by creating a connection in a Mysql client?
– Rayann Nayran
Yes! And I still can’t solve
– Alec Jas
Exchange localhost for 127.0.0.1
– Rayann Nayran
Is on your computer or is on a website?
– Guilherme Nascimento
It’s on a website. and I switched it to 127.0.0.1 and it keeps showing the same thing.
– Alec Jas