3 messages in com.mysql.lists.bugsRe: ERROR 1006: Can't create database...
FromSent OnAttachments
N L11 Dec 2003 03:37 
Sinisa Milivojevic11 Dec 2003 04:46 
Sergei Golubchik11 Dec 2003 05:58 
Subject:Re: ERROR 1006: Can't create database 'X'. (errno: 13)
From:Sergei Golubchik (se@mysql.com)
Date:12/11/2003 05:58:54 AM
List:com.mysql.lists.bugs

Hi!

On Dec 11, N L wrote:

Hello

I am having difficulties: I am working on Mac OSX 10.2.8 with mysql 4. I needed to change the data directory of MySQL from its original place (where the application have to be and not the databases because there is not enought room) to an other volume of my computer. I made a symlink from data to data in the other volume and not anymore as it was to var in the same volume before. I copied all files and directories of var in this new directory -data-. I changed with mysql mysql all this file and directories (group and owner). And I made : create database X; ERROR 1006: Can't create database 'X'. (errno: 13)

I hope what I explain is clear!

There is utility program that comes with MySQL - perror.

Trying "perror 13" you'll get:

Error code 13: Permission denied

check permissions of the datadir.

Regards, Sergei