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

后端 未结 8 1306
夕颜
夕颜 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 22:15

    Set/Change password:

    mysqladmin -u root -p password
    

    Login to MySQL console:

    mysql -u root -p
    

    To exit the console:

    .\q
    

提交回复
热议问题