Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jul 28, 2004 12:45 pm 
Offline
Newbie

Joined: Wed Jul 28, 2004 12:31 pm
Posts: 2
Anybody done the following... I know I have in the past, but different os's and versions of mysql.

Im running debian-small 2.4.26 with mysql 4.0.20.
I have a separate disk-image /dev/ubdd mounted on /usr/db
I moved an existing mysql database directory onto this separate filesystem and then replaced it with a symbolic link like...
mv /usr/local/mysql/var/woodys_db /usr/db/woodys_db
and...
ln -s /usr/db/woodys_db /usr/local/mysql/var/woodys_db

All permissions are sane, but now 'woodys_db' cannot be selected, and does not show up under 'show databases;'

Restarting mysqld doesnt help, and shouldn't matter as I can play around with this directory by moving it about, and once I get it back into place, everything works again without informing mysql of any changes. Anybody doing the same and have any ideas for me.

Your feedback is appreciated, so thanks in advance.
-woody


Top
   
 Post subject:
PostPosted: Wed Jul 28, 2004 2:29 pm 
Offline
Newbie

Joined: Wed Jul 28, 2004 12:31 pm
Posts: 2
Quote:
All permissions are sane, but now 'woodys_db' cannot be selected, and does not show up under 'show databases;'



duh.........

Actually, that's not entirely true.

Permissions were fine for the symbolic link, and for the directory /usr/db/woodys_db however /usr/db had perms=700 and was owned by root. "chown mysql:mysql /usr/db" and "chmod 770 /usr/db" was the trick.

The symlinked database is now accessed without problems.

-woody


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group