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

后端 未结 8 1329
夕颜
夕颜 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:12

    Firstly, go to the folder support-files on terminal, and start the server by mysql.server start, Secondly, go to the folder bin on terminal or type /usr/local/mysql/bin/mysqladmin -u root -p password

    It would ask you for the old temporary password which was given to you while installing Mysql, type that and type in your new password and it would work.

提交回复
热议问题