Page MenuHomePhabricator

LOAD INTO FILE permission on MySQL tools-db server for user created databases
Closed, DeclinedPublic

Description

Currently, the FILE MySQL privilege isn't granted, so tools users can't use mysqlimport or statement like LOAD DATA INFILE 'items.dat' INTO TABLE items;

Could you grant the FILE privileges on the tools-db server for such use?


Use case:

Currently, Wikidata doesn't offer a directly or easily usable tables or views to get claims data through SQL queries.

On the other hand, WDQ API offers such information with acceptable performance.

To create a tool manipulating results from WDQ in MySQL, I would like to add them on a table. LOAD INTO FILE gives *really* greater performance than regular INSERT operation.


Query to grant the right:

GRAND FILE on u1000__.* to u1000@...;


Reference:


Version: unspecified
Severity: normal

Details

Reference
bz70956

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:51 AM
bzimport added a project: Toolforge.
bzimport set Reference to bz70956.

tools-db is a separate server with a different file system. You should be able to use LOAD DATA LOCAL INFILE (NB: LOCAL) which allows to load files local to the client which is what you probably want.