'Access denied for user 'root'@'localhost' (using password: NO)'

后端 未结 8 1320
夕颜
夕颜 2020-11-29 21:28

I\'m trying to set the password of the user root but I\'m gettin the error below, any idea?

+----------------------------------------------------------------         


        
8条回答
  •  情书的邮戳
    2020-11-29 21:59

    when trying to run this command i got the same error

    sudo mysqladmin create asteriskcdrdba
    

    i simply add a few lines to the code

    -u root -p
    

    and pressed the enter key. i then typed my password and hit enter. Linux liked my command as nothing more was displayed

    so maybe try

    sudo  -u  -p
    

    after that hit enter and enter your password

提交回复
热议问题