本地MYSQL不会启动OS X 10.9.3

时间:2014-06-20 23:07:53

标签: mysql installation

我已经通过以下方式下载了MYSQL:

bash <(curl -Ls http://git.io/eUx7rg)

在安装之前,我已完全卸载以前的组件:

http://community.jaspersoft.com/wiki/uninstall-mysql-mac-os-x

我必须修改权限才能查看日志文件并主要查看权限错误。此外,当我尝试:

type mysql 

终端中的结果指向本地系统上不存在的目录。当我跟踪可执行文件的路径时(通过Finder),我在终端中收到以下错误:

/usr/local/mysql-5.6.19-osx10.7-x86_64/bin/mysql ; exit;
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
logout

另外,当我查看my.conf文件时,所有内容都是星号:

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# socket = .....

# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 

1 个答案:

答案 0 :(得分:0)

有同样的问题。不得不将机器切换一周并在“OS X 10.9.3(13D65)”上安装MySQL不起作用。不得不擦除帐户清理并重新初始化用户以使其运行。显然还有一个旧的mysql没有完全卸载。谷歌“手动卸载mysql”

拒绝访问是在授予接口127.0.0.1但不授予localhost的某个时候发生的。

尝试授予对%127.0.0.1和localhost的访问权限。