[Solved] chown + symlink + mysql

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
Big-E
Administrator
Administrator
Posts: 1332
Joined: 16 May 2007, 16:00
16
Location: IN UR ____ , ____ING UR _____ .
Contact:

[Solved] chown + symlink + mysql

Post by Big-E »

So basically, I took the mysql directory located in /var/mysql and moved it to /usr/mysql due to the var directory running out of space (install process recommended that i create a separate partition for /var).

So basically, it's now symlinked from mysql --> /usr/mysql with both having the correct permissions for both user/group for the SL and the original dir. Which, if you didn't know how to change permissions on a symlink is done as follows.

Code: Select all

 
chown -h user directory 
chgrp -h group directory
Note: for some reason chown -h user:group directory did not work ??


Now, my question being - Will this affect the mysql install?

It seems to be as if mysql cannot find the databases when I try "SHOW databases;"


Solution:

I was silly and forgot to check the permissions on the original directory, they are not set correctly and after restarting the daemon and other daemons touching the file, it now works correctly. :D
Last edited by Big-E on 18 Sep 2008, 08:33, edited 1 time in total.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hm, of course it don't work when the linking didn't work properly....hm, what about using the "normal" ln -s and chown/chgrp? :-k

Post Reply