mysql config missing file

Asked by João Pinto

After playing around with mysql I have deleted /etc/mysql, I have reinstalled the mysql packages however there is a file which is never reinstalled.

lamego@lamego-ubuntu:~/ircsvs/local/backup$ sudo /etc/init.d/mysql start
Starting MySQL database server: mysqld.
/etc/init.d/mysql: line 88: /etc/mysql/debian-start: No such file or directory
lamego@lamego-ubuntu:~/ircsvs/local/backup$

How can find the packake and retrieve the /etc/mysql/debian-start ?

Shouldn't the file be installed with the mysql-server or mysql-common ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
João Pinto (joaopinto) said :
#1

I found how to fix it, removing it with the --purge:

 sudo apt-get remove --purge mysql-server
and
 sudo apt-get install mysql-server

Revision history for this message
Marco Barbato (marco-betaingegneria) said :
#2

got the same problem: synaptic has got even frozen for this. Thanks

Revision history for this message
Danny Archer (danny-archerunlimited) said :
#3

ok so to fix
touch /etc/mysql/debian-start
chown mysql:mysql /etc/mysql/debian-start
chmod ug+x /etc/mysql/debian-start

Revision history for this message
timothywird29 (kirkfrancis37) said :
#4

To solving such problem out you need to prof recovery software.

I would recommend you following software http://www.mysql.fixtoolbox.com