0
之前組中的錯誤所以我一直在嘗試好2-3個小時來解決安裝mysql時遇到的幾個問題。 現在,我目前停留在這一個:無法啓動mysql服務器。在配置
打字時:mysql.server restart
這個打印出的終端:
my_print_defaults: [ERROR] Found option without preceding group in config file /etc/my.cnf at line 1!
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
my_print_defaults: [ERROR] Found option without preceding group in config file /etc/my.cnf at line 1!
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
ERROR! MySQL server PID file could not be found!
my_print_defaults: [ERROR] Found option without preceding group in config file /etc/my.cnf at line 1!
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/MacBook.local.pid).
我my.cnf
文件包含以下內容:(和位於~/etc
)
[mysqld_safe]
[mysqld]
[client]
port = 3306
skip-external-locking
bind-address = 127.0.0.1
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
myisam-recover = BACKUP
query_cache_limit = 1M
query_cache_size = 16M
log_error = /var/log/mysql/error.log
expire_logs_days = 10
max_binlog_size = 100M
query-cache-type = 1
default-storage-engine=innodb
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
[isamchk]
key_buffer = 16M
任何的幫助深表感謝。
儘量不要縮進'的[mysqld]'和'[客戶]'線。 – Barmar
仍然是一樣的錯誤@Barmar – Joel
相關http://stackoverflow.com/questions/8020297/mysql-my-cnf-file-found-option-without-preceding-group – Barmar