Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2003
    Posts
    20

    Default How To Reset All Mysql Permissions

    One of my people was playing around in a PHPADMIN session and deleted all permissions for mysql LOCALHOST

    I would like to restore all Myql LOcalhost permissions to what they were when Cpanel was first installed.

    Can someone tell me how to do this.

    Thanks

    Howard

  2. #2
    Member Planet_Master's Avatar
    Join Date
    Apr 2002
    Location
    New Yorker
    Posts
    260

    Default

    Reset your MySql password in WHM, this should generate the correct permissions.
    Vision Plateau Web Services - Total Control Hosting
    http://www.visionplateau.com

  3. #3
    Member
    Join Date
    Jul 2003
    Posts
    20

    Default Tried to reset mysql permissions

    Did what you suggested and set new Mysql password in WHM, and then clicked on Phpmyadmin and then clicked on Databases and clicked on MYSQL in the drop down of all databases.....then I clicked on USER and got the following error.

    Users and global privileges

    Error

    SQL-query :

    SHOW KEYS FROM `user`

    MySQL said:


    #1142 - select command denied to user: 'root@localhost' for table 'user'

    [Documentation] · [Back]

  4. #4
    Member
    Join Date
    Jul 2003
    Posts
    20

    Default ALSO PROBLEM FINDING USERS IN CPANEL

    Also, I noted when entering the CPANEL control panels for all clients using a mysql database that the database names appeared, but there were NO USERS displayed???

    HELP.

  5. #5
    Member Planet_Master's Avatar
    Join Date
    Apr 2002
    Location
    New Yorker
    Posts
    260

    Default

    Just try to restart mysql with --skip-grant-tables option
    And recreate your root user


    This should reset permissions.
    Last edited by Planet_Master; 04-12-2004 at 12:51 AM.
    Vision Plateau Web Services - Total Control Hosting
    http://www.visionplateau.com

  6. #6
    Member
    Join Date
    Jul 2003
    Posts
    20

    Default Re: Restarting Mysql with skip-grant-tables option

    Dear Planet_Master:

    In WMH there is only an option to restart mysql, and nothing there that Ican see than allows me to restart mysql with --skip-grant-tables option, and recreate a root user

    We are novices.

    Can you let me know exactly what to type in an SSH session at the root that will enable me to:

    1 - restart mysql with --skip-grant-tables option
    2- recreate my root user

    How will I know who the root user is?

    I think it's root@localhost.com?

    Howard

Similar Threads & Tags
Similar threads

  1. Reset default permissions
    By syshackmin in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-08-2008, 05:45 PM
  2. File permissions being reset to 644
    By cemper in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-21-2007, 05:15 PM
  3. reset permissions
    By jsen in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-27-2007, 07:32 AM
  4. /tmp permissions have to be reset every day
    By ShortSchoolBus in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-10-2005, 11:50 AM
  5. Email CGI Permissions Reset
    By Drew Nichols in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-03-2004, 12:25 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube