Jump to content

Access denied for user 'ODBC'@'localhost'


bubbadawg

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/194822-access-denied-for-user-odbclocalhost/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.