Last modified: 2014-09-17 19:59:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72956, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70956 - LOAD INTO FILE permission on MySQL tools-db server for user created databases
LOAD INTO FILE permission on MySQL tools-db server for user created databases
Status: NEW
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Marc A. Pelletier
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-17 19:59 UTC by Dereckson
Modified: 2014-09-17 19:59 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dereckson 2014-09-17 19:59:08 UTC
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:

- http://dev.mysql.com/doc/refman/5.5/en/load-data.html
- http://dev.mysql.com/doc/refman/5.5/en/privileges-provided.html#priv_file

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links