LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-18-2008, 09:50 AM   #1
tarak420
LQ Newbie
 
Registered: Sep 2008
Posts: 8

Rep: Reputation: 0
Question mysql server ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using pas


i got stuck with mysql server

version
========
Linux version 2.6.18-92.1.10.el5PAE (mockbuild@builder16.centos.org) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Tue Aug 5 08:14:05 EDT 2008


installed with yum
==================
yum install mysql mysql-server

when i try mysql

give error
[root@m5157 ~]# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
 
Old 09-18-2008, 09:53 AM   #2
tarak420
LQ Newbie
 
Registered: Sep 2008
Posts: 8

Original Poster
Rep: Reputation: 0
i tried this also

mysqladmin -u root pass new-pass
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
 
Old 09-18-2008, 09:52 PM   #3
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 525

Rep: Reputation: 39
Try to start mysql server as 'Mysql' user which most probably you used when installing the database as follows:-
PHP Code:
[root@localhost ~]# cd /usr/local/
[root@localhost local]# cd mysql
[root@localhost mysql]# bin/mysqld_safe --user=mysql &
Starting mysqld daemon with databases from /usr/local/mysql/data 
Or,
start the mysql server with no privileges and that way you can reset the admin password of mysql root user.

Last edited by tanveer; 09-19-2008 at 06:31 PM.
 
  


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
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) samnjugu Linux - Software 12 01-22-2013 06:22 AM
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) ShaqDiesel Linux - Server 1 09-11-2008 11:49 PM
MySql 5.0 on Debian sid: ERROR 1045 (28000): Access denied juchem Linux - Software 3 04-18-2008 12:52 AM
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) S canegames Debian 11 07-18-2007 12:57 PM
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) mohtasham1983 General 2 04-02-2007 06:36 PM

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

All times are GMT -5. The time now is 06:19 PM.

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