Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. About MySQL table permission removal failed

About MySQL table permission removal failed

Scheduled Pinned Locked Moved Database
databasemysqlhelpannouncement
2 Posts 2 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 11054723
    wrote on last edited by
    #1

    Hello:

    My MySQL database version is 5.6.35 and I use InnoDB.

    I want to remove the Delete and Drop Table permissions of the user U1 from the table T1 in the db1 database.
    The operating instructions are as follows:

    Revoke delete,drop on db1.T1 from U1;

    No error message appeared after execution.

    But after execution, the user U1 can still use the DELETE command to delete the data row in the data table T1.
    You can also use the DROP TABLE command to delete the data table T1.

    Thanks for replying.

    Richard DeemingR 1 Reply Last reply
    0
    • M Member 11054723

      Hello:

      My MySQL database version is 5.6.35 and I use InnoDB.

      I want to remove the Delete and Drop Table permissions of the user U1 from the table T1 in the db1 database.
      The operating instructions are as follows:

      Revoke delete,drop on db1.T1 from U1;

      No error message appeared after execution.

      But after execution, the user U1 can still use the DELETE command to delete the data row in the data table T1.
      You can also use the DROP TABLE command to delete the data table T1.

      Thanks for replying.

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      Most likely the user still has permission via their role membership: MySQL :: MySQL 8.0 Reference Manual :: 6.2.10 Using Roles[^]


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups