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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-16-2006, 08:49 AM
|
#1
|
Member
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269
Rep:
|
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.
|
|
|
04-16-2006, 01:12 PM
|
#2
|
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Rep:
|
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
|
|
|
04-16-2006, 07:41 PM
|
#3
|
Member
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269
Original Poster
Rep:
|
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
|
|
|
04-16-2006, 07:55 PM
|
#4
|
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Rep:
|
I don't think it is runnung
Code:
#/etc/init.d/mysql start
mysqladmin -u root password 'passwordyouwant'
mysql -u root -p
|
|
|
04-16-2006, 10:37 PM
|
#5
|
Member
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269
Original Poster
Rep:
|
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.
|
|
|
04-17-2006, 12:16 AM
|
#6
|
Member
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|