I just installed XAMPP on my home machine for windows 7. I am trying to access the mysql database using Flex and AMFPHP. I am getting the following error when I attempting to connect via Flex / PHP - Access denied for user 'ODBC'@'localhost' (using password: NO); See PHP code below:
- Code: Select all
Access denied for user 'ODBC'@'localhost' (using password: NO)
<?php
class LightBoxes{
public function __constructor(){
$connect = mysql_connect("localhost","root","mypassword");
mysql_select_db("digitalassets",$connect);
}
function read(){
$query = "SELECT * FROM lightboxes_tbl";
$result = mysql_query($query) or die(mysql_error());
return mysql_error();
}
}
}
?>
'
I have researched this via Google and can not seem to find a solution that will work on my machine - I am also experiencing the same issue on my work machine as well. I set up the user 'root' with a passwor via the XAMPP security page. I currently don't have the user 'ODBC'.
Any information to help resolve this issue is certainly appreciated.