Can't find any matching row in the user table

前端 未结 5 707
攒了一身酷
攒了一身酷 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:34

    Run from Root user:

    grant all privileges on *.* to 'user'@'localhost' identified by '';
    

    EDIT

    Example

    mysql> grant all privileges on *.* to 'user'@'localhost' identified by 'user'; 
    
    mysql> flush privileges;
    

提交回复
热议问题