簡體   English   中英

本地MYSQL無法啟動OS X 10.9.3

[英]Local MYSQL won't start OS X 10.9.3

我已經通過以下方式下載了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 

有同樣的問題。 不得不切換機器一周,並且無法在“ OS X 10.9.3(13D65)”上安裝MySQL。 必須清除帳戶並重新初始化用戶才能使用。 顯然還有一個舊的mysql尚未完全卸載。 Google“手動卸載mysql”

當授予接口127.0.0.1而不是本地主機的訪問權時,訪問被拒絕。

嘗試授予對%,127.0.0.1和localhost的訪問權限。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM