The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to reset root password of old Unix System V 82026 Security 6 01-22-2009 10:23 AM
Password reset not being accepted W.A.C. Forum Support Area for Unregistered Users & Account Problems 3 12-13-2008 02:37 PM
Looking for a script to reset password soliberus SUN Solaris 3 05-11-2008 11:15 AM
how do you reset Samba root PW w/o knowing it? mehow SUN Solaris 2 01-20-2008 06:48 PM
I would like to reset my password matrixmadhan Post Here to Contact Site Administrators and Moderators 5 04-30-2007 10:46 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-23-2009
viji19812001 viji19812001 is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 8
Not able to reset mysql root password

Hi,

My root password for mysql has some problem as it dosent allow me to login....

all commands to reset it failed. so I removed mysql
yum remove mysql

and installed it by
yum install mysql mysql-devel mysql-server
and it installed fine

I gave chkconfig --levels 235 mysqld on
started my mysql server and when I give

mysqladmin -u root password new_password
it throws error
mysqladmin:
You cannot use 'password' command as mysqld runs
with grant tables disabled (was started with --skip-grant-tables).
Use: "mysqladmin flush-privileges password '*'" instead



I had given a safe mode skip grant command which just hung...could that be a problem....Please let me know what needs to be done.

Regards,
vijaya.
  #2 (permalink)  
Old 01-27-2009
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
First, stop and start mysqld. Then login and execute :
Code:
GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY 'topsecret';
where topsecret is your current password. Then change the password, you also might want to look at this article.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0