Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-11-2008, 04:18 PM   #1
Registered: Jul 2005
Posts: 144

Rep: Reputation: 15
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

I have read many threads about this error and none of the solutions have worked for me. I am trying this:

and get this error:
mysqld --skip-grant-tables
080911 13:55:47 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

080911 13:55:47 [ERROR] Aborting

080911 13:55:47 [Note] mysqld: Shutdown complete

# mysql -u root mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

I looked into that error:
but I don't have /etc/my.cnf! I don't have /tmp/mysql.sock or /var/lib/mysql/mysql.sock either. Should I have these files?

Why am I having problems connecting to mysql if it's a fresh install? Thanks.

Last edited by ShaqDiesel; 09-11-2008 at 05:28 PM.
Old 09-11-2008, 11:49 PM   #2
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, Debian
Posts: 278

Rep: Reputation: Disabled
try mysql -p. Then give the root password. If mysql isn't running, there is no .sock file. It's dynamically created when mysql starts.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: Access denied for user 'root'@'localhost' (using password: NO) jun_tuko Linux - Software 3 03-05-2013 06:37 AM
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) samnjugu Linux - Software 12 01-22-2013 06:22 AM
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

All times are GMT -5. The time now is 07:13 PM.

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