LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-16-2006, 08:49 AM   #1
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Rep: Reputation: 30
Cool Mysql passwd needs updating(error)


I am getting a error that seems to be stopping apt-get or synaptic working cleanly or properly, its says its to do with mysql password needing to be changed,

Setting up mysql-server-5.0 (5.0.19-2) ...
Stopping MySQL database server: mysqld.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
The mysql passwords need to be updated from the original.

Now I dont use Mysql yet that I know of & am having trouble finding a way to change passwds for mysql as I dont know where it is etc as I cant find any Mysql software on my menu list in Kanotix except under "services" .
Does anyone know how or where I can be updated.
 
Old 04-16-2006, 01:12 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Strange
As root what happens when you;
Code:
mysql -u root -h localhost -p
this is from the docs;
The -u switch sets the user that will be logging in. The -h switch sets the host. This will usually be localhost unless you are setting up a remote server. Finally, -p tells the mysql client that you will be entering a password to access your database. Notice the mysql> prompt. This is where you type in all your commands. Now that we're in the mysql prompt as the root user, we can begin to setup our database.
quit to exit
 
Old 04-16-2006, 07:41 PM   #3
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
Thanks, Sorry 4 late reply as I wrote my post before I went to bed,
AnyWay this is what I get when I add the Command Given

root@JasonsBraain:/home/1hutchy# mysql -u root -h localhost -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I have seen similar error before when using linux & it seems as though I should already have a Mysql Passwd somewhere but I could never work out where to put it, is it on a website somewhere that you add passwd or should I have a file or pkg I can modify etc,
Sorry but I dont know much about Mysql except I wanted to setup Mythtv a few times but couldnt because I needed to learn about Mysql apparently.
AnyWay could you elaborate on what I could or should do next.
Thanks Browser
 
Old 04-16-2006, 07:55 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
I don't think it is runnung
Code:
#/etc/init.d/mysql start
mysqladmin -u root password 'passwordyouwant'
mysql -u root -p
 
Old 04-16-2006, 10:37 PM   #5
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
Those commands you gave work great & they change my passwds etc but I still get problems when trying to use Synaptic or apt-get,
I tried using the commands given at different times while trying to use Synaptic etc & still get the error.
This is the first error I get when opening Synaptic
]
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

What I think happened was one time when I used Synaptic it either froze or I closed it before installation of software (mysql)was finished & now I keep getting this error.
AnyWay I type in 'dpkg --configure -a' as it states & then it gives the same problem

root@JasonsBraain:/home/1hutchy# dpkg --configure -a
Setting up mysql-server-5.0 (5.0.19-2) ...
Stopping MySQL database server: mysqld.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
The mysql passwords need to be updated from the original.

this is What Synaptic actually does & does this everytime I try to install software it gets so far installing packages & then says
The mysql passwords need to be updated from the original.
& just sits there for ever like its about to do something else but never does, so I end up having to press "Ctrl + Backspace" to close Synaptic because it wont close on its own or by pressing close as it says its still running, so I just end up back where I started.
in other words it still says I have to update the Passwords when installing software even though I have.
.
I might see if anything happens when I try to update my Msql packages etc using apt-get.
AnyWay thought I would keep you up to date,
You answered my original question about how to update the passwords much appreciated, I dont know if anyone has had this similar problem with synaptic though.
 
Old 04-17-2006, 12:16 AM   #6
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
YEEE HAA, YIBBIDEE-YIBBIDA, "I solved the problem",
I had to go to the debian packages site & installed package & dependency after dependency till I was able to install SmartPM which I got from there as well & uninstalled the 3 Mysql pkgs that gave me hell as I could not use apt-get to uninstall them & until I got rid of those mysql pkgs, but should now be able to reinstall them if needed, The lucky thing was that "Kpackage still actually allowed me to drag & drop the software & dependencies into it to be installed as that is for me the easiest way to install manually without apt-get instead of command line.
AnywaY
 
  


Reply

Tags
fix, synaptic


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 error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
MySQL Can't connect to DB when passing passwd on command line dimsh Linux - Software 2 11-08-2005 02:38 AM
programmatically updating /etc/passwd ananthbv Programming 7 01-12-2005 12:11 AM
MySQL New Install... PASSWD problem ryancoolest Linux - Newbie 2 07-28-2004 09:01 PM
my mysql-3.23.58 can't set root passwd bear_bear Linux - General 1 01-05-2004 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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