Cannot log in with created user in mysql

前端 未结 12 1408
小蘑菇
小蘑菇 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:05

    Similar problem occurred for me even after verifying i haven't entered a wrong password, i couldn't login. Below two steps solved my problem.

    1. Dropping test database
    2. Deleting anonymous user

提交回复
热议问题