LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-13-2008, 06:15 PM   #1
SimbaSpirit
Member
 
Registered: Feb 2008
Posts: 109

Rep: Reputation: 15
Cannot install MYSQL 5.0??


I tried setting this up a while back and it returned an error, saying it would leave the package unconfigured. I was a complete newb then and figured "ok, at least all the data's there right?".. Now I'm trying to install ISPConfig so I can manage Ilohamail, and it tells me mysql isn't installed. So I marked all of my mysql packages for reinstallation, reinstall, even reboot, and it gives me the same error. So I uninstalled them all, and reinstalled them, this is the error I'm given...

Quote:
#Since I can't just copy the text over to here I'll type where the error #happens
* Stopping MySQL database server mysqld
...done.
* Starting MySQL database server mysqld
...fail!
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
dpkg: dependency problems prevent configuration of mysql-server:
mysql server depends on mysql-server 5.0; however:
Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
I installed the empty shell version which picks the best version of MySQL for me, so I understand that part, what I don't understand is what is impeding the configuration of mysql-server-5.0.

Any ideas?

TIA,
-SS
 
Old 02-13-2008, 08:40 PM   #2
SimbaSpirit
Member
 
Registered: Feb 2008
Posts: 109

Original Poster
Rep: Reputation: 15
Here's a terminal readout, hope it helps:

Quote:
myname@myserver:~$ sudo dpkg --configure mysql-server-5.0
Setting up mysql-server-5.0 (5.0.45-1ubuntu3.1) ...
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [fail]
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
Errors were encountered while processing:
mysql-server-5.0
 
Old 02-13-2008, 09:06 PM   #3
SimbaSpirit
Member
 
Registered: Feb 2008
Posts: 109

Original Poster
Rep: Reputation: 15
MySQL5.0 not installing correctly?

bump
......

Last edited by SimbaSpirit; 02-14-2008 at 05:13 PM.
 
Old 02-14-2008, 03:05 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
with a debian based distribution i would simply type
sudo apt-cache search mysql
then take a look at the output and copy the modules to the next line:

sudo apt-get install mysql-server mysql-client mysql-common libmysqlclient15-dev

i did not encounter dependency problems this way yet...

cheers, j
 
Old 02-14-2008, 06:52 AM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Merged identical threads.
 
Old 02-15-2008, 01:57 AM   #6
SimbaSpirit
Member
 
Registered: Feb 2008
Posts: 109

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by j-ray View Post
with a debian based distribution i would simply type
sudo apt-cache search mysql
then take a look at the output and copy the modules to the next line:

sudo apt-get install mysql-server mysql-client mysql-common libmysqlclient15-dev

i did not encounter dependency problems this way yet...

cheers, j
I did exactly what you said and I got this:

(log is huge so I selected the last half)
Quote:
Selecting previously deselected package libmysqlclient15-dev.
Unpacking libmysqlclient15-dev (from .../libmysqlclient15-dev_5.0.45-1ubuntu3.1_i386.deb) ...
Selecting previously deselected package mysql-client.
Unpacking mysql-client (from .../mysql-client_5.0.45-1ubuntu3.1_all.deb) ...
Setting up mysql-server-5.0 (5.0.45-1ubuntu3.1) ...
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [fail]
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
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.0; however:
Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Setting up linux-libc-dev (2.6.22-14.52) ...
Setting up libc6-dev (2.6.1-1ubuntu10) ...
Setting up zlib1g-dev (1:1.2.3.3.dfsg-5ubuntu2) ...
Setting up libmysqlclient15-dev (5.0.45-1ubuntu3.1) ...

Setting up mysql-client (5.0.45-1ubuntu3.1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
mysql-server-5.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have proftpd and gproftpd installed, any clue in that?
Since I have those installed I would really rather not have to reinstall ubuntu.
Is there a way I can purge mysql more thoroughly than aptitude is capable of? I come from windows and when something goes wrong I uninstall, comb the registry, and reinstall... any parallel process in ubuntu?

Thanks,
-SS
 
Old 02-15-2008, 02:07 AM   #7
SimbaSpirit
Member
 
Registered: Feb 2008
Posts: 109

Original Poster
Rep: Reputation: 15
I tried to install it (thus configure it) from the recovery mode, and I noticed it said:

Quote:
chown: cannot access '/var/run/mysqld': No such file or directory
* Starting My SQL database server mysqld [FAIL]
Ok so /var/run/mysqld isn't there... if I downloaded and redownloaded all these packages and in theory they were installed, why am I missing a directory? What do I need to DL that will add that directory? Considering this is trying to run the package I *just* installed, in recovery mode so all resources should be lockable, what gives?

EDIT:
I just rebooted into normal mode, var/run/mysqld does exist, but is entirely empty... do I need to install mysql as root account instead of Sudo?

Last edited by SimbaSpirit; 02-15-2008 at 02:11 AM. Reason: update
 
Old 02-15-2008, 03:32 AM   #8
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
maybe run

su

(if you havnt set a root password yet:
sudo passwd root
)
then

apt-get remove mysql-server

then

apt-get install mysql-server

or
get yourself binaries from mysql.com, install the way they describe...
should work easily
cheers. j
 
Old 02-15-2008, 04:32 PM   #9
SimbaSpirit
Member
 
Registered: Feb 2008
Posts: 109

Original Poster
Rep: Reputation: 15
Alright I tried the su method before, as well as doing from the root account.

I went to their site and the site is very busy, all I'm seeing are solutions that it looks like you have to pay for it.

I'm not planning on using mysql, just installing it so other programs will work, and as such I know very little about it, could someone give me a url to the binary?

Thanks,
-SS
 
Old 02-18-2008, 03:20 PM   #10
SimbaSpirit
Member
 
Registered: Feb 2008
Posts: 109

Original Poster
Rep: Reputation: 15
I found the answer through experimentation.
If someone else goes through this lets hope they find this thread:

The problem was my /etc/network/interfaces did not have the loopback stanza
Quote:
#The loopback network interface
auto lo
iface lo inet loopback

#The primary network interface
auto eth0
iface eth0 inet static
address xxx.xxx.x.xxx
network xxx.xxx.x.x
netmask xxx.xxx.xxx.x
broadcast xxx.xxx.x.xxx
gateway xxx.xxx.x.x
Everything above the primary network interface disappeared somehow and mysql is dependent on it to install.

Hope this helps someone!
-SS
 
Old 02-19-2008, 02:45 AM   #11
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
cool, good to know anyway
http://dev.mysql.com/downloads/ -> communtiy server is for free
 
Old 04-12-2008, 11:26 AM   #12
jg433
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
Talking Mysql start problem solved

I had the same problem after installing a brandnew Ubuntu Heron 8.04, getting always the message
Quote:
invoke-rc.d: initscript mysql, action "start" failed.
After trying to fix it for some hours I gladly found this thread - and your solution helped.
In my interfaces file the two lines you mentioned had been commented out. I deleted the '#' for both lines, did a complete purge:
Quote:
sudo apt-get autoremove --purge mysql*
and after this a reinstall
Quote:
sudo apt-get install mysql-server mysql-client
Now everything went smoothly without errors.
Thank you very much!
 
Old 04-12-2008, 11:06 PM   #13
SimbaSpirit
Member
 
Registered: Feb 2008
Posts: 109

Original Poster
Rep: Reputation: 15
Hey that's why I'm so verbose in my last posts, glad this newbie could help ya!
 
  


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
Cedega 5.0.1 not installing correctly spartanM19SSM Linux - Games 2 12-19-2005 06:52 PM
Grub not installing correctly confidential007 Fedora - Installation 7 07-10-2004 04:14 PM
nothing installing correctly Vindane Slackware 3 05-28-2004 12:25 PM
Correctly installing CD RW... jambeck Linux - Hardware 14 11-09-2002 02:06 PM
LFS packages not installing correctly... Chijtska Linux From Scratch 2 02-11-2002 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:35 PM.

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