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.

 

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.