Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

privilege: support FILE privilege in TiDB like MySQL #11583

Closed
cfzjywxk opened this issue Aug 2, 2019 · 1 comment
Closed

privilege: support FILE privilege in TiDB like MySQL #11583

cfzjywxk opened this issue Aug 2, 2019 · 1 comment
Assignees
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@cfzjywxk
Copy link
Contributor

cfzjywxk commented Aug 2, 2019

Feature Request

Is your feature request related to a problem? Please describe:

Describe the feature you'd like:

support FILE privilege in TiDB like MySQL, so users can control file related operations by users to reduce secure risks

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

@cfzjywxk cfzjywxk added the type/enhancement The issue or PR belongs to an enhancement. label Aug 2, 2019
@morgo morgo assigned morgo and unassigned zz-jason Jan 21, 2021
@morgo
Copy link
Contributor

morgo commented Jan 22, 2021

This has already been added for SELECT INTO OUTFILE in #19553

It is not applicable for the two remaining cases:

LOAD DATA does not support the local option:

mysql> LOAD DATA INFILE '/tmp/t.txt' INTO table test.t1;
ERROR 1105 (HY000): Load Data: don't support load data without local field

The function LOAD_FILE() has not been added, see #8436

mysql> SELECT LOAD_FILE('/tmp/t.txt');
ERROR 1305 (42000): FUNCTION load_file does not exist

As such, I am going to go ahead and close this issue.

@morgo morgo closed this as completed Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

3 participants