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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.