TLDR;
Target:
Is it possible to grant privileges to a certain "audit" user to access to MySQL metadata only (schema,table,column at least) without access to exact data in tables?
Version
MySQL 8+
Try:
Before this issues,
I've been already tried or known:
- review MySQL official docs on privileges (notice me if I missed the answer in it)
- search keywords on SOF:
mysql,privilege,metadata, etc. - find solutions with my DBA friends
- grant
show databasesto users, but it could get the schema lists only - all grants to
infomatica_schemawas in vain, as known to all SELECT ON *.*is another answer, but my leader dont wanna data leak through it
Background:
My company ordered devops to collect MySQL metadata for some issues of audits or security monitoring or else (I don't know the details of whole story). Unnecessary data leak would not be expected to my leader. BTW, I dont know the specific method where they, audit depts maybe, are going to collect metadata. All I've been required to do is to create a granted user for them.