Thanks for the shrewd and detailed advice. I have followed it and created a sandbox database to buffer my production data from the outsource work. all data is moved to and from this sandbox dbase before being sent off to contractors. i created a new user and granted it all priveleges on the sandbox database.
before i sent data and stub code to outsource guy, i changed all the table names (by changing the include file) and emptied out the username and password so the outsourcers will know neither my true database names, table names, usernames, or passwords.
that said, i still need to import their data into my database and they have delivered SQL files. i went ahead and did so using mysql from the command line.
now i'm interested in scrutinizing this data for SHOW, DESCRIBE, and GRANT statements. i'm particularly concerned about grant statements. problem is that the word "grant" appears several hundred times in my data.
can anyone suggest a way to search an SQL file (text) to locate this sort of syntax?
GRANT priv_type [(column_list)] [, priv_type [(column_list)]] ...
ON {tbl_name | * | *.* | db_name.*}
TO user [IDENTIFIED BY [PASSWORD] 'password']
[, user [IDENTIFIED BY [PASSWORD] 'password']] ...
[REQUIRE
NONE |
[{SSL| X509}]
[CIPHER 'cipher' [AND]]
[ISSUER 'issuer' [AND]]
[SUBJECT 'subject']]
[WITH [GRANT OPTION | MAX_QUERIES_PER_HOUR count |
MAX_UPDATES_PER_HOUR count |
MAX_CONNECTIONS_PER_HOUR count |
MAX_USER_CONNECTIONS count]]
REVOKE priv_type [(column_list)] [, priv_type [(column_list)]] ...
ON {tbl_name | * | *.* | db_name.*}
FROM user [, user] ...
REVOKE ALL PRIVILEGES, GRANT OPTION FROM user [, user] ...