Problem While Learning PHP

Discussion in 'PHP' started by Polizel, Feb 6, 2010.

  1. #1
    Hello,

    I am currently trying to learn PHP. I downloaded the training dvd from lynda.com and started learning. I have installed WAMP server 2. The problem starts when i open MySql console. It asks for the password.. I hit enter. (As trainer asks me to do).
    Now the trainer in the video enter following code to set a password in mysql console
    CODE;
    =============
    use mysql
    database changed
    UPDATE user
    Password=PASSWORD<'zyz'>
    WHERE user='root';
    After that mysql accepts it and do the task but when i try it following happens . I hope i have explained my prblem.

    [​IMG]
     
    Polizel, Feb 6, 2010 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    You have forgotten the command "SET". Try this:

    UPDATE user SET password=PASSWORD("polizelyaseen") WHERE user='root';
     
    s_ruben, Feb 6, 2010 IP
  3. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Also, you need to use password() and not password<>. That is, use parentheses, not angle brackets.
     
    SmallPotatoes, Feb 7, 2010 IP
  4. Polizel

    Polizel Peon

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thankyou it helps thx again
     
    Polizel, Feb 7, 2010 IP
  5. hostgenius

    hostgenius Guest

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i reccomend using xampp.

    also, why are u in the command line, there are other ways to do this. (atleas on xampp, so im not rlly sure on wampp)

    I use xampp because afterwards i always deploy to linux servers.

    if im not mistaking wampp installs iis ? wich i dont need .
     
    hostgenius, Feb 8, 2010 IP
  6. nadiralishah_webexpert

    nadiralishah_webexpert Guest

    Messages:
    229
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yes, i dont know too why you are prefering to work on command link.. i will recommend you xampp, wamp, or easyphp.. easyphp is the easiest to use if you are new to php programming.
     
    nadiralishah_webexpert, Feb 8, 2010 IP