|
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 GroupAll rights reserved. |
Last updated: Thu Oct 30 20:00:01 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