|
Posted by zhenwenxu@gmail.com on 08/18/07 08:21
On Aug 18, 1:20 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> zhenwe...@gmail.com wrote:
> > On Aug 17, 9:31 am, Rik <luiheidsgoe...@hotmail.com> wrote:
> >> On Fri, 17 Aug 2007 03:18:45 +0200, zhenwe...@gmail.com
>
> >> <zhenwe...@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- Hide quoted text -
>
> >> - Show quoted text -
>
> > no.My php script which is used to connect to my mysql user the user
> > name 'root' and
> > password,but I still can't connect to mqsql.
>
> > But it can connect to mysql with 'root' and my passwoed by mysql admin
> > tools.
>
> > Also the phpadmin can't connect to the mysql,I think my php script is
> > right.
>
> > I think there is something wrong with my mysql.
>
> I think there's something wrong with your code. Try posting it.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================- Hide quoted text -
>
> - Show quoted text -
This is my script:
$conn=mysql_connect(`localhsot`,`root`,`123456`);
`123456` is my password.
Navigation:
[Reply to this message]
|