mysql CREATE USER

前端 未结 5 1930
一生所求
一生所求 2021-02-12 22:45

I am logged into mysql...

mysql -u root -pmypass

And I have run the following command to remove the database user which worked succesfully

相关标签:
5条回答
  • 2021-02-12 23:17

    i will suggest you to use phpmyadmin its very esey do do with that.

    steps:

    1. open phpmyadmin
    2. go to admin section
    3. hit on add user account
    4. put user name and password
    5. set privileges

    that's all see in action on youtube [ click here ]

    0 讨论(0)
  • 2021-02-12 23:17

    You have to manualy remove records with from mysql.tables_priv also.

    0 讨论(0)
  • 2021-02-12 23:18

    drop user 'username@localhost '

    0 讨论(0)
  • 2021-02-12 23:31

    Check following 2 tables if user is still there after DROP USER command: mysql.user and mysql.db.

    Delete user from both, then run FLUSH PRIVILEGES and then you can recreate the user.

    0 讨论(0)
  • 2021-02-12 23:39

    This is a bug reported here - http://bugs.mysql.com/bug.php?id=28331

    See if your user exists after you drop it.

    0 讨论(0)
提交回复
热议问题