|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2003-06-25 07:17 UTC] nefer at ib dot ru
 Description:
------------
I can't connect to MySQL server, cose mysql_connect() are not pass a password to the server (i think).
mysql  Ver 11.18 Distrib 3.23.56, for portbld-freebsd4.8 (i386)
Reproduce code:
---------------
<?                                                                                                                                                    
    mysql_connect('localhost', 'root', 'cccc');                                                                                                 
    echo mysql_error();                                                                                                                               
?>                                                                                                                                                    
Expected result:
----------------
Nothing (as no error)
Actual result:
--------------
Access denied for user: 'root@localhost' (Using password: NO)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 10:00:02 2025 UTC | 
> (Using password: NO) This means, no password has been set for the account mysql_connect('localhost', 'root'); should work, then Regards, Christian Stadler