Error, query failed : Access denied for user 'ODBC'@'localhost' (using password: NO)
gotten this when i tried to do a INSERT..
@mysql_query($sql) or die('Error, query failed : '.mysql_error());
had checked that my$sql statement is correct via mysqlquery..
any one knows 'bout how to get around with it? thanks for any help!!
Error, query failed : Access denied for user 'ODBC'@'localho
Moderator: General Moderators
You need
Code: Select all
$db = mysql_connect(.., .., ..) or die(mysql_error());- Cameri
- Forum Commoner
- Posts: 87
- Joined: Tue Apr 12, 2005 4:12 pm
- Location: Santo Domingo, Dominican Republic
It seems your connection is using defaults...
First, you have to do like volka said, create a connection link between the PHP page and the MySQL web server.
Make sure the host name, user name and password are set up correctly. And "nevar" create a login with a no password or your database(s) could become compromised.
First, you have to do like volka said, create a connection link between the PHP page and the MySQL web server.
Make sure the host name, user name and password are set up correctly. And "nevar" create a login with a no password or your database(s) could become compromised.