Problem with file permissions when reinstalling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.1 (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
What I did was flushing privileges after moving to another server, then my new root password changed to this from old server but i didnt know that and i did remove mysql-server and reinstall it again hoping to not use flush privileges again. This caused so horrible-
apt-get remove --purge mysql-server
It was a few problems while reinstalling mysql-server
1. /var/lib/
2. Something like /lib/modules/
3. Something like /lib/modules/
Some log (not mine):
Setting up mysql-client-5.0 (5.0.51a-
Setting up mysql-server-5.0 (5.0.51a-
* Stopping MySQL database server mysqld [ OK ]
/var/lib/
dpkg: error processing mysql-server-5.0 (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
mysql-server-5.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
How I fixed it?:
sudo bash
chown -R mysql:mysql /var/lib/
(it was root:root)
touch /etc/mysql/my.cnf
chown -R mysql:mysql /etc/mysql/
(it was root:root)
apt-get install mysql-server
/etc/init.d/mysql stop
/etc/init.d/mysql start
(it was fail before)
.........[ OK ]
!!!!!!!
Best Regards,
grryf
Very similar:
http://
ndo@ks31258:
2.6.24-24-generic
(not .28)
Changed in mysql-dfsg-5.0 (Ubuntu): | |
status: | Incomplete → Confirmed |
affects: | mysql-dfsg-5.0 (Ubuntu) → mysql-dfsg-5.1 (Ubuntu) |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Could you please provide the following information:
* content of /var/log/daemon.log related to mysql processes:
/var/ log/daemon. log
* apparmor audit messages related to mysqld. The output of the command:
egrep 'audit\ (|apparmor| selinux| security' /var/log/kern.log
* mysqld apparmor profile:
/etc/ apparmor. d/usr.sbin. mysqld
* list of mysqld apparmor profiles:
ls -l /etc/apparmor. d/usr.sbin. mysqld*
* mysql configuration stripped of private information (such as password):
/etc/ mysql/my. cnf
* extra mysql configuration from the conf.d directory:
/etc/ mysql/conf. d/
* directory listing of mysql datadir (by default /var/lib/mysql):
ls -l /var/lib/mysql