Comment 13 for bug 316974

Revision history for this message
Alfredo Deza (arufuredosan) wrote :

Hi,

I had the same problems when installing Mysql-server-5.1 and had to uncomment the line to skip-bdb.

Now to upgrade, I was getting the same errors as people in this thread.

The current problem was fixed for me doing the following:

sudo apt-get remove --purge mysql-server-5.1
sudo apt-get autoremove
sudo rm -rf /etc/mysql
sudo apt-get install mysql-server-5.1

At this point Mysql will complain that it can't read /etc/mysql/my.cnf but this is triggered because it no longer installs the configuration file named as my.cnf but as debian.cnf (Would this need be reported as another bug?)

After it complains do:
sudo cp -a /etc/mysql/debian.cnf /etc/mysql/my.cnf

Now once again:
sudo apt-get install mysql-server-5.1

This corrected everything for me and now I have mysql installed and working.