MySQL 8 create new user with password not working

前端 未结 1 1283
鱼传尺愫
鱼传尺愫 2021-01-31 17:15

I am using MySQL for several years and the command for the creating the new user till the MySQL 5.x version is as follow:

GRANT ALL PRIVILEGES ON *.* TO \'userna         


        
相关标签:
1条回答
  • 2021-01-31 17:30

    Try this:

    use mysql;
    CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
    GRANT ALL ON *.* TO 'username'@'localhost';
    flush privileges;
    
    0 讨论(0)
提交回复
热议问题