+ Reply to Thread
Results 1 to 5 of 5

Thread: access denied to a function!

  1. #1
    lagavulin is offline x10Hosting Member lagavulin is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    2

    access denied to a function!

    I try to accessing a stored function in mysql server, but i receive error this error query error: execute command denied to user xxxxx for routine myuser@starka.x10hosting.com

    To solve this problem I've tried to grant user access the stored function with GRANT SELECT ON database.function TO myuser@starka.x10hosting.com, but I receive that error #1142 - GRANT command denied to userxxxxxxxxxxxx for table xxxxxxxxx.

    where I'm wrong?

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: access denied to a function!

    You can use PHPMyAdmin from your CPanel to get a graphical idea of what is happening. When you log in, you have all possible permissions on your own databases, so you can grant and give grant option to whomever needs it.

    Also, trying to run the query from within PHPMyAdmin may be slightly more helpful because it tends to give you more information.
    Last edited by garrettroyce; 10-29-2009 at 08:26 PM.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: access denied to a function!

    If you get it to work, please post your solution.
    I tried to get mySQL to accept a "SELECT * INTO OUTFILE" request, but it keeps comming back access denied. And I had set up the user with all the permissions at the time.
    Nothing is always absolutely so.

  4. #4
    lagavulin is offline x10Hosting Member lagavulin is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    2

    Re: access denied to a function!

    I've tried the same query directly into phpMyAdmin and the result is what I hope. But from php apps it doesnt work.

    where in phpmyadmin can I set permission on my stored function?

  5. #5
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: access denied to a function!

    Sorry, I'm thinking of the full version of PHPMyAdmin, not the limited X10 version. You need to use the MySQL Databases tool for permissions.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

+ Reply to Thread

Similar Threads

  1. SQL access denied
    By mglmgl in forum Free Hosting
    Replies: 1
    Last Post: 10-08-2009, 08:21 AM
  2. MySQL Remote Access
    By bdlghost in forum Free Hosting
    Replies: 3
    Last Post: 09-17-2009, 09:33 PM
  3. FTP Denied Access
    By burner35 in forum Free Hosting
    Replies: 3
    Last Post: 06-05-2008, 11:46 AM
  4. cannot access new tables
    By Colony in forum Free Hosting
    Replies: 4
    Last Post: 05-26-2008, 04:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers