How to remove user privileges associated with the dropped table?

366 Views Asked by At

When I was reading about the DROP TABLE statement in MySQL, I came across the term RESTRICT & CASCADE. On one website, click here to goto that link where I found information stating,

Note that the DROP TABLE statement only drops tables. It doesn’t remove specific user privileges associated with the tables. Therefore, if you create a table with the same name as the dropped one, MySQL will apply the existing privileges to the new table, which may pose a security risk.

It made me curious to know how one can remove user privileges associated with the dropped table? Also, what are the use of RESTRICT & CASCADE keywords in the DROP TABLE statement?

0

There are 0 best solutions below