[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Cannot create a function

Posted on 2012-08-17
Medium Priority
Last Modified: 2012-08-17

I´m using MySQL v5.1, when I want to create a function on a DB I get the following error: #1044 - Access denied for user [..]

The user have been granted with the following permissions: INSERT, CREATE, DROP, DELETE according to the MySQL Website, to allow function creation only INSERT is needed (http://dev.mysql.com/doc/refman/5.1/en/create-function-udf.html), what could be happening?

Question by:mzanlongo
1 Comment
LVL 24

Accepted Solution

johanntagle earned 2000 total points
ID: 38305108
The statement on that page is actually misleading - you need the INSERT privilege, but it's not the only one you need.  You need CREATE ROUTINE to create, EXECUTE to run the routines, and ALTER ROUTINE to modify or drop a routine.  See also http://dev.mysql.com/doc/refman/5.1/en/privileges-provided.html#priv_create-routine

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month19 days, 14 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question