我知道有很多关于这个问题的帖子,但是,我已经尝试了所有我见过的解决方案,但没有一个正在发挥作用.我已经在这两天工作了......似乎我应该能够进行简单的安装工作.以下是事实:我从MySQL站点下载了mysql-5.6.15-osx10.7-x86_64.dmg.我打开并运行了mysql-5.6.15-osx10.7-x86_64.pkg.然后我去了命令行并尝试了一长串命令来启动MySQL和NOTHING工作.
以下是我的一些尝试及其结果的列表:
~ $ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) ~ $ mysqld 2014-01-13 19:52:20 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. 2014-01-13 19:52:20 0 [Warning] Using unique option prefix thread_cache instead of thread_cache_size is deprecated and will be removed in a future release. Please use the full name instead. 2014-01-13 19:52:20 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2014-01-13 19:52:20 953 [Warning] Can't create test file /usr/local/mysql-5.6.15-osx10.7-x86_64/data/rogerknwlessmbp.lower-test 2014-01-13 19:52:20 953 [Warning] Can't create test file /usr/local/mysql-5.6.15-osx10.7-x86_64/data/rogerknwlessmbp.lower-test mysqld: File './mysql-bin.index' not found (Errcode: 13 - Permission denied) 2014-01-13 19:52:20 953 [ERROR] Aborting ~ $ sudo mysqld
在关于弃用设置的几个警告之后,我得到了:
2014-01-13 20:27:55 1311 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root! 2014-01-13 20:27:55 1311 [ERROR] Aborting 2014-01-13 20:27:55 1311 [Note] Binlog end ~ $ sudo /usr/local/mysql/bin/mysqld_safe 140113 20:30:08 mysqld_safe Logging to '/usr/local/mysql/data/rogerknwlessmbp.err'. 140113 20:30:09 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data 140113 20:30:11 mysqld_safe mysqld from pid file /usr/local/mysql/data/rogerknwlessmbp.pid ended ~ $ sudo /usr/local/mysql/support-files/mysql.server start Starting MySQL ... ERROR! The server quit without updating PID file (/usr/local/mysql/data/rogerknwlessmbp.pid).
我读了一篇帖子说这是一个权限问题,而且解决方案是使用Mac OS X中的"磁盘工具"应用程序重建权限.我这样做没有任何效果.
在过去的几天里,我尝试了很多东西,我无法跟踪,但是,它们都得到了相同的结果.我已经尝试安装早期版本,不同版本(x86),以及继续.如果有人建议我可以尝试什么,我会非常感激.我很想让MySQL在这台机器上工作.它在我的机器上并且在某一点上工作但是,由于我很久以前遇到的一些问题,我将其卸载了.现在,我无法让它发挥作用.