LinuxQuestions.org
Help answer threads with 0 replies.
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 07-23-2010, 08:42 AM   #1
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 34
Problem installing mysql-server


My phpmyadmin stopped working. I reinstalled it and it gives error #2002. I found that this error is from mysql, which i couldn't repair and i begin to reinstall it. First I was with Debian 5.03, but i played with /etc/apt/sources.list and after upgrading
sudo apt-get update
sudo apt-get dist-upgrade

i have now 5.05

The problem is that when i install mysql-server a dependency appear in mysql-server-5.0. I follow this instructions
http://ariejan.net/2007/12/12/how-to...-ubuntudebian/
and after
sudo apt-get install mysql-server mysql-client

i get this error:
Code:
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
 subprocess post-installation script returned error exit status 1
Setting up libgtkhtml3.8-15 (3.12.3-3) ...
Setting up libhtml-template-perl (2.9-1) ...
Setting up libterm-readkey-perl (2.30-4) ...
Setting up mysql-gui-tools-common (5.0r12-1) ...
Setting up mysql-admin (5.0r12-1) ...
Setting up mysql-client (5.0.51a-24+lenny4) ...
Setting up mysql-query-browser (5.0r12-1) ...
Processing triggers for menu ...
Errors were encountered while processing:
 mysql-server-5.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
How can i fix this dependency? I didn't find anything relative in google.

mysql-server-5.0 --configure gives error: command not found

Edit:

I uninstalled all related with mysql and execute
dpkg --purge mysql-server
then reboot and run first
apt-get install mysql-server-5.0 mysql-client-5.0
and then
apt-get install mysql-server mysql-client
There was no error
Code:
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
but there was another error when run mysql -u root -p
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Last edited by konzo; 07-23-2010 at 09:42 AM.
 
Old 07-23-2010, 11:08 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
apt-get install mysql-server-5.0 mysql-client-5.0
and then
apt-get install mysql-server mysql-client
Why you are installing both (mysql5.0 and mysql)? It is really not needed.
 
Old 07-26-2010, 09:45 AM   #3
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 34
mysql-server has dependency of the configuration of mysql-server-5.0

After several install/update/purge/remove and I found various information on other forums with no solution I reinstalled Debian, since this was fresh install. Maybe problem with socket has no solution yet.
 
  


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
problem in installing mysql server shadow_rana Linux - Newbie 2 07-19-2009 07:27 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
Writing an app that uses a mysql database without installing mysql server? QtCoder Programming 4 08-09-2004 02:43 PM
MySQL server problem after linking (mysql.sock) ewijaya Linux - General 4 01-19-2004 09:46 AM

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

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