LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2002, 11:24 PM   #1
Park_7677
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 8.0
Posts: 16

Rep: Reputation: 0
Need MySQL Help


While I'm not a newbie @ MySQL nor PHP I don't know how to fix an error in Linux.


When I use phpMyAdmin I get the following:

------------------------------------------------------------------------

Welcome to phpMyAdmin 2.3.2

Error

MySQL said:

Access denied for user: 'root@localhost' (Using password: NO)

------------------------------------------------------------------------

Does anyone know where the config files are for MySQL? Any tips to fix this without ripping my hair out?! If you're wanting to ask how I got this error.....

1. Installed MySQL with Linux install.
2. Newer version released so I downloaded the RPM. I uninstalled the old version and installed the new.
3. Everything's fine. MySQL works but the PHP-MySQL extensions do not. I uninstalled the new version of MySQL and reinstalled the one from my dist CD. PHP-MySQL extensions work now but user problems are now present.


That brings me to posting this.

THANKS FOR ANY HELP!

::Ross_
 
Old 11-14-2002, 11:40 PM   #2
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Rep: Reputation: 30
So did you install phpmyadmin and mysql in root?

#Garry
 
Old 11-14-2002, 11:55 PM   #3
Park_7677
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 8.0
Posts: 16

Original Poster
Rep: Reputation: 0
Yes, Root. Was that a bad move?
 
Old 11-15-2002, 12:02 AM   #4
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Rep: Reputation: 30
Not neccessarily...

Did you log in as root, or just switch to root temporairly via console?

Cause you really shouldn't log soley as root...

Can you try re-installing it as a normal user, then 'su' when necessary...

#Garry
 
Old 11-15-2002, 12:07 AM   #5
Park_7677
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 8.0
Posts: 16

Original Poster
Rep: Reputation: 0
Logged In. If I did something bad... I plan on reinstalling RH8 clean once I learn the basic do's and dont's.
 
Old 11-15-2002, 12:11 AM   #6
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Rep: Reputation: 30
No nothing bad, it's just that root has power over EVERYTHING and if you do something wrong you can get yourself in some trouble

Try installing as a normal user...

#Garry
 
Old 11-15-2002, 12:13 AM   #7
Park_7677
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 8.0
Posts: 16

Original Poster
Rep: Reputation: 0
Let me try.... just that the CD-ROM is loud when opening/closing and my mom is trying to sleep! lol. I'm not supposed to be up !
 
Old 11-15-2002, 12:29 AM   #8
Park_7677
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 8.0
Posts: 16

Original Poster
Rep: Reputation: 0
What I did:

stopped httpd
stopped mysqld

uninstalled mysql
installed mysql

start mysqld
start httpd

--------------------------------------------------------------------

Welcome to phpMyAdmin 2.3.2

Error

MySQL said:

Access denied for user: 'root@localhost' (Using password: NO)

--------------------------------------------------------------------

Same error. I give up. No big deal. I have a new box to be built (a very nice one) next week and is the target linux box. I was just learning on this one. It's 12:30 so I'm off to bed. Thanks
 
Old 11-15-2002, 12:34 AM   #9
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Rep: Reputation: 30
Ok no worries...

Good night

#Garry
 
Old 11-16-2002, 02:08 PM   #10
mace
Member
 
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176

Rep: Reputation: 30
http://www.rocketry.org/~tim/geek_stuff/mysql.php

supplies a good tut. for installing by scratch.
 
  


Reply


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
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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