Last modified: 2014-08-27 19:59:38 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 T59558, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57558 - Can't create functions on p50380g50790__wanderwiki database
Can't create functions on p50380g50790__wanderwiki database
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
PC Windows 7
: Unprioritized major
: ---
Assigned To: Marc A. Pelletier
:
: 54653 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-25 21:04 UTC by joffrey.quero
Modified: 2014-08-27 19:59 UTC (History)
5 users (show)

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


Attachments

Description joffrey.quero 2013-11-25 21:04:44 UTC
Hello,
when i try to create functions for the database i got the followin message,

"ERROR 1419: You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)"

So i'd like to know if i can get the rights in order to implement functions.

Thanks
Comment 1 Andre Klapper 2013-11-25 21:30:27 UTC
Please provide exact steps to reproduce so somebody could follow the steps and face the same problem. This neither mentions "the database" nor any commands nor any information how to get there nor anything about the setup.
Comment 2 joffrey.quero 2013-11-26 00:39:00 UTC
The database i'm refering to is named p50380g50790__wanderwiki and is associated with project wanderwiki on the tool server.
I connect to it using my account on the tool lab : joffreyq
and doing the following:
- become wanderwiki
- mysql --defaults-file="${HOME}"/replica.my.cnf -h tools-db p50380g50790__wanderwiki

After this if i run the following command :
DELIMITER $$

CREATE FUNCTION `new_function` ()
RETURNS INTEGER
BEGIN

RETURN 1;
END

I have this error:
"ERROR 1418: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)"

So i tried the following command:
CREATE FUNCTION `new_function` ()
RETURNS INTEGER DETERMINISTIC NO SQL
BEGIN

RETURN 1;
END

And had this error: 
"ERROR 1419: You do not have the SUPER privilege and binary logging is enabled
(you *might* want to use the less safe log_bin_trust_function_creators
variable)"
Comment 3 metatron 2013-11-27 13:57:20 UTC
See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=54653

Might be because binlogging is enabled on tools-db.
Comment 4 Tim Landscheidt 2013-11-27 19:49:40 UTC
*** Bug 54653 has been marked as a duplicate of this bug. ***
Comment 5 Marc A. Pelletier 2013-12-21 17:22:38 UTC
It is (because binlogging is enabled).

The new database in eqiad will allow function creation, and that is slated to be live at the end of January alongside the new migrated labs.

If that is soon enough, I'd rather not fiddle with the already rickety tools-db (which lives in a VM with very limited resources), but I can probably do so if necessary.
Comment 6 Marc A. Pelletier 2014-08-27 19:59:38 UTC
This should be fixed now.

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


Navigation
Links