Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    248

    Default commandline like "Reset Local MySQL Root Password" in whm

    Hi,

    I need to know the code on how to hard reset mysql password, just like what "Reset Local MySQL Root Password"(found in whm) do

    the mysql change password script found in /scripts/ is just change password. it will not fix mysql.sock & *.pid problem if it is missing..

  2. #2
    cPanel Partner NOC This forum account has been confirmed by cPanel staff to represent a vendor.cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Location
    San Clemente, Ca
    Posts
    703

    Default

    this is for linux, with bsd some of the paths to things may be diffrent...

    /etc/init.d/mysql stop
    mysqld_safe --skip-grant-tables &
    mysql mysql -e "update users set password=PASSWORD('THE NEW PASS GOES HERE') where user='root';"
    killall -9 mysqld_safe
    killall -9 mysqld
    vi /root/.my.cnf and replace password next to pass= with your new password
    /etc/init.d/mysql start
    Shaun Reitan
    NDCHost.com - cPlicensing.net - ProVPS.com
    Contact us for your cPanel Licensing needs! We Price Match, We provide Support, We take care of our customers!

  3. #3
    Member
    Join Date
    Nov 2003
    Posts
    27

    Default

    Hello:

    I have the next error:

    ERROR 1146 (42S02) at line 1: Table 'mysql.users' doesn't exist

    This is since I upgrade MySQL 4 to 4.1, and now I can't access phpMyAdmin from WHM, and users can't view their databases inside cpanel, but they can view them in phpMyAdmin.

    Any idea?

  4. #4
    Registered User
    Join Date
    Sep 2007
    Posts
    3

    Default

    Quote Originally Posted by SebastianC View Post
    Hello:

    I have the next error:

    ERROR 1146 (42S02) at line 1: Table 'mysql.users' doesn't exist

    This is since I upgrade MySQL 4 to 4.1, and now I can't access phpMyAdmin from WHM, and users can't view their databases inside cpanel, but they can view them in phpMyAdmin.

    Any idea?
    An old post, but hope this may help in future forum searchs:

    the table "users" become "user" in mysql database, then replace the step

    mysql -e "update users set password=PASSWORD('THE NEW PASS GOES HERE') where user='root';"

    with

    mysql -e "update user set password=PASSWORD('THE NEW PASS GOES HERE') where user='root';"

Similar Threads & Tags
Similar threads

  1. Add "delete list" button in WHM on "Reset a Mailman Password" page
    By cPanelMary in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 01-08-2011, 12:19 AM
  2. Replies: 5
    Last Post: 03-12-2007, 03:40 PM
  3. command to Reset Local MySQL Root Password?
    By gundamz in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-14-2004, 11:23 AM
  4. "Reset Local MySQL Root Password" does not work.
    By gopederick in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-12-2004, 07:21 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube