LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-20-2008, 02:32 PM   #1
woodson2
Member
 
Registered: Oct 2008
Posts: 51

Rep: Reputation: 15
MYSQL frustrations


Hello, I'm trying to connnect and configure the root password for mysql after a fresh install.
I've done the following

1. yum install
mysql-server mysql-administrator mysql mysql-gui-common php-mysql

2. service mysqld start

At this point from what I understand, the root mysql account should have no password set so I can either

A. connect to the database with mysql -u root. with this I'm getting the following error.

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

or I can set the root password with

B. mysqladmin -u root password 'newpassword' which yields the same error. I've searched tirlessly to resolve this on my own but everything I read says this only happens if you have set a password for root which I haven't done. Any help would be greatly appreciated..Thanks
 
Old 10-20-2008, 02:39 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Follow the instructions here:

http://www.mydigitallife.info/2006/0...-mysql-server/

If that doesn't help, let us know.

Forrest
 
Old 10-20-2008, 03:26 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Usually by default as root just run mysql without any options and it will log you into the database. Then setup a password for the root user or create another admin type user is the better way to go and disable the known root user it creates.
 
Old 10-21-2008, 08:22 AM   #4
woodson2
Member
 
Registered: Oct 2008
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by forrestt View Post
Follow the instructions here:

http://www.mydigitallife.info/2006/0...-mysql-server/

If that doesn't help, let us know.

Forrest
Thanks for your help, however I was able to fix the problem by deleting the /var/lib/mysql directory..Apparently it retains settings from previous installs.
 
Old 10-21-2008, 10:52 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by woodson2 View Post
Thanks for your help, however I was able to fix the problem by deleting the /var/lib/mysql directory..Apparently it retains settings from previous installs.
Yup, that'll do it as well.
 
  


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
The frustrations of language! bigjohn General 4 11-14-2005 07:15 PM
Windows frustrations and Linux praise (venting my frustrations) Shaun32 General 6 03-04-2005 12:07 PM
internet frustrations daven1 Slackware 12 01-06-2005 06:00 AM
CJK frustrations mifan Linux - Newbie 0 05-22-2004 10:59 PM
LILO Frustrations corster Linux - Laptop and Netbook 3 04-06-2004 07:03 PM

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

All times are GMT -5. The time now is 07:28 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