My Oracle Support Banner

Variable automatic_sp_privileges Is Not Working - "Warning 1404: Failed to grant EXECUTE and ALTER ROUTINE privileges" ; "ERROR 1370 (42000): execute command denied to user" (Doc ID 2377877.1)

Last updated on MARCH 23, 2018

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.


The issue can be reproduced at will with the following steps:

  1. Create test database, test user and grant CREATE ROUTINE to test user




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.