Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql connection error

Status
Not open for further replies.

vmacs

Programmer
Mar 3, 2003
1
IN
When i connect to mysql from php i got the following error. How to rectify this . Help me
Code:
<?
include(&quot;ClsOP_Connection.inc&quot;);

$ObjConnection = new OP_Connection(&quot;localhost&quot;,&quot;root&quot;,&quot;root&quot;,&quot;Orderprocessing&quot;);

$ObjConnection->Open();
?>

Warning: Access denied for user: 'root@localhost' (Using password: NO) in c:\apache\htdocs\order\ClsOP_Connection.inc on line 20

Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO) in c:\apache\htdocs\order\ClsOP_Connection.inc on line 20
Could not connect
 
well, you have not posted the actual connect code

but from the error string it looks like the user password is not passed to the connect function

if you need more help post the relevant part of the code
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top