Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I attempted to install MySQL using Synaptic but it failed to start on update with the following output:

Selecting previously unselected package mysql-client.
(Reading database ... 131143 files and directories currently installed.)
Unpacking mysql-client (from .../mysql-client_5.5.29-0ubuntu0.12.04.1_all.deb) ...
Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.04.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up mysql-client (5.5.29-0ubuntu0.12.04.1) ...
Errors were encountered while processing:
 mysql-server-5.5
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.04.1) ...
130201 13:36:05 [Note] Plugin 'FEDERATED' is disabled.
130201 13:36:05 InnoDB: The InnoDB memory heap is disabled
130201 13:36:05 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130201 13:36:05 InnoDB: Compressed tables use zlib 1.2.3.4
130201 13:36:05 InnoDB: Initializing buffer pool, size = 128.0M
130201 13:36:05 InnoDB: Completed initialization of buffer pool
130201 13:36:05 InnoDB: highest supported file format is Barracuda.
130201 13:36:06  InnoDB: Waiting for the background threads to start
130201 13:36:07 InnoDB: 1.1.8 started; log sequence number 1595685
130201 13:36:07  InnoDB: Starting shutdown...
130201 13:36:08  InnoDB: Shutdown completed; log sequence number 1595685
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 mysql-server-5.5

I am not sure how to pull apart the where the initialization broke down, or how to get it started. Is it likely that I am missing a library somewhere that would account for this? Does the disabled 'FEDERATED' plugin matter? What is going on with InnoDB anyway?

share|improve this question
    
The first thing I would check here is if you are out of diskspace in some partition. – MortenSickel Feb 1 '13 at 20:05
    
@MortenSickel /sda1,/udev,/tmpfs, /run/lock and /run/shm are all under 4% used; is there another mount point I should be looking at? – mfg Feb 1 '13 at 20:26
    
Have you tried looking at /var/log/mysql.err or /var/log/mysql.log (I think - I use Percona Server)? The disabled FEDERATED plugin shouldn't cause this problem. – livingstaccato Feb 1 '13 at 21:23
    
What are you upgrading from? – Karlson Feb 1 '13 at 21:52
    
No, ignore the message about the FEDERATED plugin. Please post the entire MySQL error log. – Dimitre Radoulov Feb 8 '13 at 21:14

Do you have the MySQL server, or just the client? The Server is what you should be starting. Check if you have that.

$ sudo apt-get install mariadb-server

Then run:

$ sudo service mariadb start Redirecting to /bin/systemctl start mariadb.service

Note, mariadb is essentially MySQL. Also, post the command you are using, not just the output. Also, I am using CentOS so my output may look different than yours.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.