PDA

View Full Version : [ubuntu] Permissions Problem with var directory



regnumimbrium
June 13th, 2009, 03:31 AM
Hey Everyone,

I think I really screwed some things up. While on my user "main", I executed the following command in terminal:

sudo chown -R main:root /var

I'm having all sorts of problems with MySQL and I think it's because of that command. I tried to undo it with the following command:

sudo chown -R root /var

Things looked as though they'd returned to normal inside the directory but I still can't connect to MySQL.

Any help would be tremendously appreciated.

llamaX
June 13th, 2009, 04:04 AM
sudo chown -R mysql /var/run/mysqld

regnumimbrium
June 13th, 2009, 05:00 AM
Awesome, thanks llamax - I'll try that right away.

Do you think that a lot of other permissions got screwed up in the /var directory? There's quite a lot of stuff in there.

There's no way to just 'undo' what I did, huh?

regnumimbrium
June 13th, 2009, 05:45 AM
Well, that didn't do the trick, llamaX. MySQL still won't boot up.