Can't find any matching row in the user table

前端 未结 5 717
攒了一身酷
攒了一身酷 2020-12-08 07:00

I am trying to execute this queries -

DROP DATABASE IF EXISTS `hotel`;

GRANT USAGE ON *.* TO \'user\'@\'localhost\';
DROP USER \'user\'@\'localhost\';

CRE         


        
5条回答
  •  遥遥无期
    2020-12-08 07:27

    I got the same error with

    grant all on newdb.* to newuser@localhost;
    

    solved with 'identified by':

    grant all on newdb.* to newuser@localhost  identified by 'password';
    

提交回复
热议问题