Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    2

    Default MySQL User privileges

    Hello,

    I have created users through mysql, that have all privileges, for an openx installation.

    Every so often, the Lock Tables and Create Temporary Tables privilege gets revoked from the user i have created for it.

    It doesn't seem to follow a specific pattern as to why it does this. I have posted in many places and people have directed me stating cpanel may be the cause of my problem.

    Has anyone else experienced this problem and have a fix for it?

    Those privileges are necessary for openx to run its statistics compiling script and it doesn't let the stats compile when those privileges are not there.

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Question

    I have created users through mysql, that have all privileges, for an openx installation.
    Just to be clear, you created the database and user thru the cPanel interface on the users acount and gave the user full permission to the DB?

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    2

    Default

    No, i created the user through phpmyadmin from root in WHM, as it is for an application on a seprate server.

  4. #4
    Registered User
    Join Date
    Jul 2009
    Posts
    1

    Default Same here

    Host upgraded Cpanel and my backup mysql user lost lock tables privliges.

    I created this user and granted privilages via ssh.

    Granted privilages again and all works again but this is my backup user and it is not good as the backups stopped running.

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by ludditetech View Post
    Host upgraded Cpanel and my backup mysql user lost lock tables privliges.

    I created this user and granted privilages via ssh.

    Granted privilages again and all works again but this is my backup user and it is not good as the backups stopped running.
    If this issue occurs again, please let our technical analysts take a look at your server so we can determine what is causing this to happen: http://tickets.cPanel.net/submit

  6. #6
    Member
    Join Date
    Aug 2004
    Posts
    472

    Default

    Quote Originally Posted by emu7 View Post
    No, i created the user through phpmyadmin from root in WHM, as it is for an application on a seprate server.
    See if the grant tables are showing fine.

    get into mysql prompt from shell

    mysql

    from mysql prompt

    use mysql
    select * from user where User="mysql_username";
    www.cliffsupport.com
    i WebManager | Access WHM from your iPhone

  7. #7
    Registered User
    Join Date
    Aug 2009
    Posts
    2

    Default

    I bumped into this issue yesterday and traced it back through the cPanel update script (and the scripts it calls).

    It looks like some options for fixing this are:
    • touch the securemysqldisable file
    • remove the 'removelockntmp' parameter from the securemysql call in mysqlup
    • restore the MySQL privileges daily by inserting mysql calls into postcpup.

    Full writeup and code snippets here:
    MySQL “Lock Tables” Disappears: Privilege Revoked Automatically « The Metric System

Similar Threads & Tags
Similar threads

  1. [Case 49886] MySQL: Manage user privileges page doesn't fully load.
    By maisemconta in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-23-2011, 04:12 AM
  2. Replies: 1
    Last Post: 03-13-2011, 01:16 AM
  3. Database user privileges randomly revoked
    By diffkid in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-24-2009, 03:51 PM
  4. FTP user privileges
    By ukdeveloper in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-13-2008, 11:20 AM
  5. mysql privileges
    By foo_bar in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-13-2002, 07:44 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube