LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-14-2012, 08:02 AM   #1
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Rep: Reputation: 3
mysqld: unrecognized service


I have installed LAMP on Ubuntu 11.04. PHP works fine but,when I try to access mysql, I get

Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
In the past I have fixed this problem with

Code:
sudo service mysqld restart
but now that gives me

Code:
mysqld: unrecognized service
I subsequently tried

Code:
sudo apt-get remove mysql-server
sudo apt-get install mysql-server
but it did not make any difference. I then tried

Code:
sudo /usr/bin/mysql_secure_installation
also to no avail.

Any help resolving this would be most appreciated,
Peter
 
Old 10-15-2012, 12:55 AM   #2
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
Try These command

sudo apt-get purge mysql-server mysql-common
sudo apt-get purge mysql-client

sudo apt-get autoremove mysql-server mysql-client mysql-common


sudo apt-get autoclean mysql-server mysql-client mysql-common


To reinstall:
sudo apt-get install mysql-server mysql-common mysql-client
 
2 members found this post helpful.
Old 10-15-2012, 08:24 PM   #3
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by arun5002 View Post
Try These command

sudo apt-get purge mysql-server mysql-common
sudo apt-get purge mysql-client

sudo apt-get autoremove mysql-server mysql-client mysql-common


sudo apt-get autoclean mysql-server mysql-client mysql-common


To reinstall:
sudo apt-get install mysql-server mysql-common mysql-client
Thank you very much! I think that fixed the problem but it's hard to tell since the password I set during the installation doesn't work. I tried two different passwords and tried just hitting return for the password. I always get the following message.

Code:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
when I enter

Code:
mysql --user=root --password=MyPassword
Thanks,
Peter.
 
Old 02-19-2014, 05:04 PM   #4
elimqiu
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Rep: Reputation: 0
On Ubuntu 13.10, I removed and re-installed mysql server and client, still get

mysqld: unrecognized service
 
  


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
squid: unrecognized service philbong_borces Linux - Newbie 7 03-27-2012 01:23 PM
nfsd: unrecognized service zeeple Linux - Newbie 2 02-12-2009 06:28 PM
dovecot: unrecognized service onik Linux - Software 1 06-26-2008 01:46 AM
xinetd: unrecognized service ??? Why?? stewchcken Linux - Networking 8 07-14-2005 08:23 AM
mysqld: unrecognized option `--skip-external-locking' MaulingMonkey Linux - Software 0 01-11-2005 02:01 PM

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

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