bubbadawg Posted March 10, 2010 Share Posted March 10, 2010 Hello All, 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: 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 password via the XAMPP security page. I currently don't have the user 'ODBC'. Any information to help resolve this issue is certainly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/194822-access-denied-for-user-odbclocalhost/ Share on other sites More sharing options...
fenway Posted March 15, 2010 Share Posted March 15, 2010 Then your config file is wrong. Quote Link to comment https://forums.phpfreaks.com/topic/194822-access-denied-for-user-odbclocalhost/#findComment-1026471 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.