mysqladmin password setup for Lamp w/Fedora

Discussion in 'HOWTO-Related Questions' started by 1millionbc.com, Mar 26, 2007.

  1. 1millionbc.com

    1millionbc.com New Member

    I am on the step.....

    mysqladmin -u root password yourrootsqlpassword
    mysqladmin -h server1.example.com -u root password yourrootsqlpassword

    The second line I changed to include my server name....

    mysqladmin -h server1.1millionbc.com -u root password yourrootsqlpassword

    And I tried changing yourrootsqlpassword to my root password on both lines but still I get errors....

    mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'root'@'localhost' (using password: NO)'

    and

    for the second line the curser just sits there blinking with out the directoy prompt and if I hit enter the cuser moves to the next line and nothing else....

    also the prompt says .....

    [root@server1 ~]#

    Can anyone help?
    Thanks!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    maybe your mysql server has already a password. Are you able to connect to mysql with:

    mysql -u root -p

    and entering your root (shell) password?
     

Share This Page