Jump to content

[SOLVED] Access error when attempt to connect MySQL


Techron

Recommended Posts

PHP 5.2.5 Using a simple script to test connection to MySQL (v5.0.45) installed on this new testbed running Apache 2.2.6 ; the "MySQL" section comes up on the " php info() " page:

 

"  <?php

mysql_connect("localhost", " ", "xxxx") or die(mysql_error());

echo "Connected to MySQL<br />";

?>  "

 

The password is the same one I use when logging to MySQL from the client ( don't know how exactly to assure "username" is other than "no value" ).  But I am still getting " Access denied for user 'ODBC'@'localhost' (using password: YES) " ; I've even tried omitting the username argument , no help.

 

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.