|
Posted by Rik on 08/17/07 01:31
On Fri, 17 Aug 2007 03:18:45 +0200, zhenwenxu@gmail.com
<zhenwenxu@gmail.com> wrote:
> On Aug 16, 9:48 am, Michael Fesser <neti...@gmx.de> wrote:
>> .oO(zhenwe...@gmail.com)
>>
>> >A question : why my php can't connect the mysql.
>>
>> >my php version is 5.014 and my mysql version is also 5.0,
>> >but i run them on the windows xp system.
>> >who knows the real problem?
>>
>> Could be anything. What does mysql_error() return? Is error_reporting
>> set to E_ALL?
>>
>> Micha
>
> here is the error messages:
> 1:
> #1045 - Access denied for user 'SYSTEM'@'localhost' (using password:
> NO)
> Warning: mysql_connect() [function.mysql-connect]: Access denied for
> user 'SYSTEM'@'localhost' (using password: NO)
>
> 2:Could not connect: Access denied for user
> 'SYSTEM'@'localhost' (using password: NO)
>
>
> 3:#1045 - Access denied for user 'SYSTEM'@'localhost' (using password:
> NO)
> [Documentation]
> http://www.mysql.com/doc/en/Error-returns.html
>
> It showed me three different error messages becouse of my different
> test.
Well, exactly as it sais, you cannot connect to mysql as the user 'SYSTEM'
without a password. Either create that user or change the code to a
user/pass that can. (Hint: if you haven't touched your MySQL installation,
you _can_ connect with user 'root' and no password. It's advisable give it
a password though).
--
Rik Wasmus
Navigation:
[Reply to this message]
|