Re: Removing schema information from MySQL system files
These files store the privileges to your database objects. There shouldn't be any proprietary data stored there, just the names of the database, tables and columns.
But if you want to erase all mention of them, I think you can try this sequence. I have not tested this to verify that it eliminates all occurrances of the strings, you can test that.
DELETE FROM db WHERE db = 'mydatabasename';
DELETE FROM host WHERE db = 'mydatabasename';
DELETE FROM tables_priv WHERE db = 'mydatabasename';
DELETE FROM columns_priv WHERE db = 'mydatabasename';
And if you use MySQL 5.0 or later:
DELETE FROM proc WHERE db = 'mydatabasename';
DELETE FROM procs_priv WHERE db = 'mydatabasename';
Then after these statements are done, do this:
FLUSH PRIVILEGES;
Regards,
Bill K.
Subject
Views
Written By
Posted
5109
June 14, 2006 08:23AM
Re: Removing schema information from MySQL system files
2800
June 14, 2006 09:48AM
2838
June 14, 2006 11:07AM
2963
June 14, 2006 12:15PM
2508
June 15, 2006 09:36AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.