Forums MAMPStack

Error when starting MySQL

Subscribe to Error when starting MySQL 5 post(s), 3 voice(s)

 
Avatar rgracia 5 post(s)

This is an error I see on the Terminal window when starting MySQL:

chown: /Applications/mampstack-0.9.4/mysql/data/mysqld.log: Operation not permitted

MySQL starts successfully but just wondering why am I getting that. Any suggestions on what to do?

 
Avatar antonio Administrator 508 post(s)

Hi,

Please, can you post the output of typing

ls -la /Applications/mampstack-0.9.4/mysql/data

in the terminal?

Cheers

 
Avatar rgracia 5 post(s)

total 73760
drwxr-s-- 11 Rodster admin 374 Apr 27 10:11 .
drwxr-sr-x 18 Rodster admin 612 Feb 9 10:36 ..
-rw-rw
-- 1 Rodster admin 5 Apr 25 18:18 Rodster-2.local.pid
drwx
- 72 Rodster admin 2448 Apr 26 11:25 drupal6
rw-rw-- 1 Rodster admin 5242880 Apr 27 09:14 ib_logfile0
-rw-rw
-- 1 Rodster admin 5242880 Apr 27 09:14 ib_logfile1
-rw-rw
-- 1 Rodster admin 27262976 Apr 27 09:14 ibdata1
drwxr-s
— 54 Rodster admin 1836 Feb 9 10:25 mysql
rw-rw-rw 1 Rodster admin 8415 Apr 25 18:18 mysqld.log
drwxr-s-- 3 Rodster admin 102 Feb 9 10:25 test
drwx
- 13 Rodster admin 442 Feb 9 11:15 wordpress

 
Avatar antonio Administrator 508 post(s)

Hi rgracia,

I don’t really know what may be wrong. I’ll investigate it a bit more.

Cheers

 
Avatar beltran Administrator 392 post(s)

Hi rgracia,

It seems a MySQL bug. The problem is that this rule check if the root directory ”/” is writable to check if you are the root user, but in OS X every user which have administrative permissions can write in the root folder. Try to search this line into the mysql/bin/mysqld_safe script:

if test -w / -o ”$USER” = “root”

and replace this line with:

if [ ‘id -u’ = 0 ]

and the warning will disappear.

Thanks for report this issue, we will fix for the next release.

Forums MAMPStack