Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Oct 2002
    Posts
    751

    Default WHM MySQL query for adding multiple CPanel MySQL users at once

    After restoring backups to a new server the cpanel mysql users are not showing up in WHM's PHPMyAdmin

    I have a list of all the usernames/passwords, but recreating them one by one through each site's CPanel will take a long time.

    If there is a way to just execute the SQL queries directly in WHM's PHPMyAdmin that would save my lot of time.

    Does anyone know what the query would like look for creating a new cpanel user and giving them ALL PRIVILEGES to a database?

  2. #2
    Member ravindradhainwa's Avatar
    Join Date
    Jan 2008
    Posts
    42

    Default Re: WHM MySQL query for adding multiple CPanel MySQL users at once

    Hi,

    You can try to restore following DB Table from old server to new server.

    /var/lib/mysql/mysql/user*

Similar Threads & Tags
Similar threads

  1. Removing MySQL databases and users...DBD::mysql::db do failed ??
    By sodapopinski in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-29-2009, 05:47 AM
  2. One MySQL Server ; Multiple cPanel/WHM installs
    By wizzy420 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-18-2008, 02:15 PM
  3. Not adding databases or users to mysql through cpanel
    By EddieFudd in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 05-13-2006, 12:40 PM
  4. Replies: 0
    Last Post: 12-28-2005, 02:34 PM
  5. Adding users to MySQL
    By tracym in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 03-28-2004, 09:02 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube