Re: (Errcode: 13) after moving data directory

2006-04-25 Thread boll

boll wrote:


Dominik Klein wrote:



Did you check FAT-permissions?
When mounting a FAT-partition, you have to set explicit permissions 
while mounting as FAT does not understand the unix permission concept.


Try to mount this way:
mount -t vfat -o uid=mysql,gid=mysql,rw,umask=007 
/dev/[yourdevicename] /your/mountpoint



Hi  Dominik,

In /etc/fstab the partition is mounted with this line:
   /dev/hdb2/mnt/FATvfatuid=27,gid=27,umask=000  0 0
...which I think is the same as what you recommend (uid  27 is "mysql") .

What I really don't understand is:
Why mysqld will start up and use the dataq on the FAT partition (as I 
want it to do) if I start it with "mysqld_safe",
but when I boot the computer or try, as root, "service mysqld start", 
it fails to start with these log errors:

   060421 08:43:10  mysqld started
   060421  8:43:11 [Warning] Can't create test file 
/mnt/FAT/mysqldata/localhost.lower-test
   /usr/libexec/mysqld: Can't change dir to '/mnt/FAT/mysqldata/' 
(Errcode: 13)

   060421  8:43:11 [ERROR] Aborting

I'm guessing that since mysqld_safe runs as user mysql, maybe mysqld 
runs as a different user?

How would I find that out?

I will keep  reading the manual,  but  will be grateful for  any ideas.


I was able to get mysqld to start at boot, by disabling selinux.
Not happy to do it that way, but couldn't find any alternative.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: (Errcode: 13) after moving data directory

2006-04-21 Thread boll

Dominik Klein wrote:



Did you check FAT-permissions?
When mounting a FAT-partition, you have to set explicit permissions 
while mounting as FAT does not understand the unix permission concept.


Try to mount this way:
mount -t vfat -o uid=mysql,gid=mysql,rw,umask=007 
/dev/[yourdevicename] /your/mountpoint



Hi  Dominik,

In /etc/fstab the partition is mounted with this line:
   /dev/hdb2/mnt/FATvfatuid=27,gid=27,umask=000  0 0
...which I think is the same as what you recommend (uid  27 is "mysql") .

What I really don't understand is:
Why mysqld will start up and use the dataq on the FAT partition (as I 
want it to do) if I start it with "mysqld_safe",
but when I boot the computer or try, as root, "service mysqld start", it 
fails to start with these log errors:

   060421 08:43:10  mysqld started
   060421  8:43:11 [Warning] Can't create test file 
/mnt/FAT/mysqldata/localhost.lower-test
   /usr/libexec/mysqld: Can't change dir to '/mnt/FAT/mysqldata/' 
(Errcode: 13)

   060421  8:43:11 [ERROR] Aborting

I'm guessing that since mysqld_safe runs as user mysql, maybe mysqld 
runs as a different user?

How would I find that out?

I will keep  reading the manual,  but  will be grateful for  any ideas.



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: (Errcode: 13) after moving data directory

2006-04-21 Thread Dominik Klein

boll schrieb:

Hi-
Using MySQL 4.1.11 on Fedora 4.
I moved my data directory to a FAT partition in order to share it with 
Windows dual-boot.
Now when I try to start mysqld normally, it fails with these messages in 
the log:


060420 18:16:03  mysqld started
060420 18:16:03 [Warning] Can't create test file 
/mnt/FAT/mysqldata/localhost.lower-test
/usr/libexec/mysqld: Can't change dir to '/mnt/FAT/mysqldata/' 
(Errcode: 13)

060420 18:16:03 [ERROR] Aborting

However, I can start mysqld using: mysqld_safe, so I know it's possible.
Any suggestions? Thanks in advance.



Did you check FAT-permissions?
When mounting a FAT-partition, you have to set explicit permissions 
while mounting as FAT does not understand the unix permission concept.


Try to mount this way:
mount -t vfat -o uid=mysql,gid=mysql,rw,umask=007 /dev/[yourdevicename] 
/your/mountpoint


Then it should work.

Regards,
Dominik

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



(Errcode: 13) after moving data directory

2006-04-20 Thread boll

Hi-
Using MySQL 4.1.11 on Fedora 4.
I moved my data directory to a FAT partition in order to share it with 
Windows dual-boot.
Now when I try to start mysqld normally, it fails with these messages in 
the log:


060420 18:16:03  mysqld started
060420 18:16:03 [Warning] Can't create test file 
/mnt/FAT/mysqldata/localhost.lower-test
/usr/libexec/mysqld: Can't change dir to '/mnt/FAT/mysqldata/' 
(Errcode: 13)

060420 18:16:03 [ERROR] Aborting

However, I can start mysqld using: mysqld_safe, so I know it's possible.
Any suggestions? Thanks in advance.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]