Cannot log in with created user in mysql

前端 未结 12 1921
小蘑菇
小蘑菇 2020-12-07 15:31

Using this command

GRANT ALL PRIVILEGES ON *.* to \'brian\'@\'%\' identified by \'password\';

I try to login with:

 mysql -         


        
12条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-07 16:10

    Change to native password using this command:

    ALTER USER 'username'@'hostname' IDENTIFIED WITH mysql_native_password BY 'password';
    

提交回复
热议问题