Xampp MySql不是';t启动(mac)

Xampp MySql不是';t启动(mac),mysql,macos,xampp,Mysql,Macos,Xampp,当我从Xampp启动Mysql时,什么都没有发生。 以下是日志: 2015-02-12 20:45:14 6090 mysqld_safe mysqld from pid file /Applications/XAMPP/xamppfiles/var/mysql/Thomass-MacBook-Air.local.pid ended 2015-02-12 20:49:20 6770 mysqld_safe Starting mysqld daemon with databases from /A

当我从Xampp启动Mysql时,什么都没有发生。 以下是日志:

2015-02-12 20:45:14 6090 mysqld_safe mysqld from pid file /Applications/XAMPP/xamppfiles/var/mysql/Thomass-MacBook-Air.local.pid ended
2015-02-12 20:49:20 6770 mysqld_safe Starting mysqld daemon with databases from /Applications/XAMPP/xamppfiles/var/mysql
2015-02-12 20:49:21 0 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
2015-02-12 20:49:21 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-02-12 20:49:21 7138 [Warning] Setting lower_case_table_names=2 because file system for /Applications/XAMPP/xamppfiles/var/mysql/ is case insensitive
2015-02-12 20:49:21 7138 [Note] Plugin 'FEDERATED' is disabled.
2015-02-12 20:49:21 7138 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-02-12 20:49:21 7138 [Note] InnoDB: The InnoDB memory heap is disabled
2015-02-12 20:49:21 7138 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-02-12 20:49:21 7138 [Note] InnoDB: Memory barrier is not used
2015-02-12 20:49:21 7138 [Note] InnoDB: Compressed tables use zlib 1.2.8
2015-02-12 20:49:21 7138 [Note] InnoDB: Using CPU crc32 instructions /Applications/XAMPP/xamppfiles/sbin/mysqld: Can't create/write to file '/Applications/XAMPP/xamppfiles/temp/mysql/ib7sYHPC' (Errcode: 13 - Permission denied)
2015-02-12 20:49:21 7fff738e6310  InnoDB: Error: unable to create temporary file; errno: 13
2015-02-12 20:49:21 7138 [ERROR] Plugin 'InnoDB' init function returned      error.
2015-02-12 20:49:21 7138 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-02-12 20:49:21 7138 [ERROR] Unknown/unsupported storage engine: InnoDB
2015-02-12 20:49:21 7138 [ERROR] Aborting
非常感谢你的帮助

编辑:感谢各位快速回复


我重新安装了XAMPP,现在一切正常。再次感谢。

这可能是由于程序未正确安装造成的,请尝试卸载它,然后重新安装,确保删除所有文件(临时文件和快捷方式),以确保它们不会导致问题

希望这能解决问题-Jim

您需要chmod(更改权限)目录,以便mysql可以对其进行写入。您会注意到错误代码还提到了以下内容:

Can't create/write to file '/Applications/XAMPP/xamppfiles/temp/mysql/ib7sYHPC' (Errcode: 13 - Permission denied)
你如何开始也可能很重要。从终端尝试此操作:

sudo chmod -R 777 /Applications/XAMPP/xamppfiles/temp/mysql

我发现它在我的日志文件中,名字是:

/Applications/XAMPP/xamppfiles/var/mysql/<User>.lan.err
然后,我转到该目录并执行以下命令,以便将所有用户对2个日志文件的权限更改为rw:

chmod +666 ib_logfile0 
chmod +666 ib_logfile1
之后,我执行了
ls-l命令,my-rw-rw是正确的:

-rw-rw-rw-   1 PerEskilson  admin  50331648 Oct 19 23:17 ib_logfile0
-rw-rw-rw-   1 PerEskilson  admin  50331648 Oct 12 13:24 ib_logfile1

完成后,我的数据库开始运行良好

我知道这是从2015年开始的,但请不要使用chmod 777Wow这确实有效!我这样做的方式是在文件上按command I以获取信息,然后使用界面从那里更改权限。
-rw-rw-rw-   1 PerEskilson  admin  50331648 Oct 19 23:17 ib_logfile0
-rw-rw-rw-   1 PerEskilson  admin  50331648 Oct 12 13:24 ib_logfile1