[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mysql fails to install after "aptitude purge mysql-server --purge-unused"



On Wed, Jun 18, 2008 at 15:46:41 -0700, S D wrote:
> > That line in the script reads:
> > 
> > echo -e "# created by
> > debconf\n[mysqld]\nold_passwords = $RET" >
> > /etc/mysql/conf.d/old_passwords.cnf
> > 
> > This does not seem to require that old_passwords.cnf exists
> > beforehand.
> > Is there still enough space on all the relevant partitions,
> 
> Yes, free space doesn't seem to be a problem, there's plenty of it.
> 
> > does the
> > /etc/mysql/conf.d/ directory exist? 
> 
> The "/etc/mysql" directory no longer exists, so no. As I remember the
> first time I tried to purge mysql the "/etc/mysql" directory wasn't
> purged as it had some files in it, so I removed it manually, I wanted
> a new, fresh, clean installation. That, perhaps, was the beginning of
> my downfall.

Maybe you can recreate the /etc/mysql/conf.d/ directory and the
installation will be successful. I see the following directory on my
system:

$ ls -ld /etc/mysql/
drwxr-xr-x 3 root root 4096 2008-06-11 11:27 /etc/mysql/

$ ls -l /etc/mysql/
total 8
drwxr-xr-x 2 root root 4096 2007-03-15 19:11 conf.d
-rw-r--r-- 1 root root 3865 2008-04-25 17:58 my.cnf

Try to create these directories with the same ownership and permissions.

If that does not work then run

dpkg -S etc/mysql

to find out which packages on your system should have files in
/etc/mysql. Then try to reinstall all these packages.

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


Reply to: