LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-12-2013, 04:24 AM   #1
jitendra.sharma
Member
 
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92
Blog Entries: 1

Rep: Reputation: Disabled
change root password error in mysql


whenever i type the command for root user with pasword redhat
#mysqladmin -u root password redhat
i getting error
"can't turn off logging error access denied"
Please guide me what should i do.........
 
Old 03-12-2013, 05:09 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Firstly, there is a difference between the mysql root user and the system root user. Don't run the mysql client as root.
If you've never given msql's root user a password use:
Code:
 mysqladmin -u root password NEWPASSWORD
If the root account has a password, you need to enter the old password to authenticate:
Code:
 mysqladmin -u root -p'oldpassword' password NEWPASSWORD
 
Old 03-12-2013, 05:46 AM   #3
jitendra.sharma
Member
 
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
jschiwal, thnks for reply.
Actuly i didn't give any password to root i want to assign the password to root user... as per your first step i did the configuration but i got the same error which i mantion above.......
 
Old 03-12-2013, 08:59 AM   #4
jitendra.sharma
Member
 
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
http://muthusaravananmca.wordpress.c...-centos-5-5-5/
i solved my problem with above links thanks.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Error Nr. 1045 Access denied for user 'root'@'192.168.0.28' (using password: YE uppalagayatri Linux - Software 9 05-11-2011 01:45 PM
[SOLVED] mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: 124vikas.dange@gmail.com Linux - Server 4 11-19-2010 01:36 AM
Mysql error 1045: Access denied for user 'root'@'localhost' (using password: YES) visitashu Linux - Server 15 11-10-2010 11:05 PM
How can I change the root password of MYSQL server Muideen Linux - Newbie 5 03-19-2009 06:49 PM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration