Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to install mysql server,and I'm getting the following error.

sudo apt-get install mysql-server-5.1

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Suggested packages:

  tinyca mailx
The following NEW packages will be installed:

  mysql-server-5.1

0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.

Need to get 0 B/6,259 kB of archives.

After this operation, 13.6 MB of additional disk space will be used.

Preconfiguring packages ...

Selecting previously deselected package mysql-server-5.1.

(Reading database ... 158432 files and directories currently installed.)

Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.62-0ubuntu0.11.10.1_i386.deb) 
...

Processing triggers for man-db ...

Processing triggers for ureadahead ...

Setting up mysql-server-5.1 (5.1.62-0ubuntu0.11.10.1) ...

120427 19:04:07 [Note] Plugin 'FEDERATED' is disabled.

120427 19:04:07  InnoDB: Initializing buffer pool, size = 8.0M

120427 19:04:07  InnoDB: Completed initialization of buffer pool

120427 19:04:07  InnoDB: Started; log sequence number 0 44233

120427 19:04:07  InnoDB: Starting shutdown...

120427 19:04:13  InnoDB: Shutdown completed; log sequence number 0 44233

start: Job failed to start

invoke-rc.d: initscript mysql, action "start" failed.

dpkg: error processing mysql-server-5.1 (--configure):

 subprocess installed post-installation script returned error exit status 1

Errors were encountered while processing:
 mysql-server-5.1

E: Sub-process /usr/bin/dpkg returned an error code (1)

How can i install mysql-server? Someone pls help me

share|improve this question

1 Answer 1

Try this:

sudo mv /etc/mysql/my.cnf /etc/mysql/my.cnf.bak; sudo apt-get install --reinstall mysql-server-5.1 mysql-server-core-5.1 mysql-client-5.1 
share|improve this answer
    
same error again :( –  RahulArackal Apr 30 '12 at 11:52

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.