Mysqld将不会在MacOSX Yosemite 10.10.2中启动

Mysqld将不会在MacOSX Yosemite 10.10.2中启动,mysql,macos,Mysql,Macos,我尝试运行以下命令: $mysqld start 但我得到了一份日志: 2015-02-19 01:41:48 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2015-02-19 01:41:48 37487 [Warni

我尝试运行以下命令:

$mysqld start

但我得到了一份日志:

2015-02-19 01:41:48 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-02-19 01:41:48 37487 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2015-02-19 01:41:48 37487 [Note] Plugin 'FEDERATED' is disabled.
2015-02-19 01:41:48 37487 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-02-19 01:41:48 37487 [Note] InnoDB: The InnoDB memory heap is disabled
2015-02-19 01:41:48 37487 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-02-19 01:41:48 37487 [Note] InnoDB: Memory barrier is not used
2015-02-19 01:41:48 37487 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-02-19 01:41:48 37487 [Note] InnoDB: Using CPU crc32 instructions
2015-02-19 01:41:48 37487 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-02-19 01:41:48 37487 [Note] InnoDB: Completed initialization of buffer pool
2015-02-19 01:41:48 37487 [Note] InnoDB: Highest supported file format is Barracuda.
2015-02-19 01:41:49 37487 [Note] InnoDB: 128 rollback segment(s) are active.
2015-02-19 01:41:49 37487 [Note] InnoDB: Waiting for purge to start
2015-02-19 01:41:49 37487 [Note] InnoDB: 5.6.21 started; log sequence number 512233130
mysqld: Too many arguments (first extra is 'start').
Use --verbose --help to get a list of available options
2015-02-19 01:41:49 37487 [ERROR] Aborting

2015-02-19 01:41:49 37487 [Note] Binlog end
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'partition'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_METRICS'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_CMPMEM'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_CMP'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_LOCKS'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'INNODB_TRX'
2015-02-19 01:41:49 37487 [Note] Shutting down plugin 'InnoDB'
2015-02-19 01:41:49 37487 [Note] InnoDB: FTS optimize thread exiting.
2015-02-19 01:41:49 37487 [Note] InnoDB: Starting shutdown...
2015-02-19 01:41:50 37487 [Note] InnoDB: Shutdown completed; log sequence number 512233140
2015-02-19 01:41:50 37487 [Note] Shutting down plugin 'BLACKHOLE'
2015-02-19 01:41:50 37487 [Note] Shutting down plugin 'ARCHIVE'
2015-02-19 01:41:50 37487 [Note] Shutting down plugin 'MRG_MYISAM'
2015-02-19 01:41:50 37487 [Note] Shutting down plugin 'MyISAM'
2015-02-19 01:41:50 37487 [Note] Shutting down plugin 'MEMORY'
2015-02-19 01:41:50 37487 [Note] Shutting down plugin 'CSV'
2015-02-19 01:41:50 37487 [Note] Shutting down plugin 'sha256_password'
2015-02-19 01:41:50 37487 [Note] Shutting down plugin 'mysql_old_password'
2015-02-19 01:41:50 37487 [Note] Shutting down plugin 'mysql_native_password'
2015-02-19 01:41:50 37487 [Note] Shutting down plugin 'binlog'
2015-02-19 01:41:50 37487 [Note] mysqld: Shutdown complete
遇到这个问题后,我从cakebrew卸载并重新安装了mysql


我记得我以前运行过mysql服务器,但我不知道为什么现在不能运行它。有什么提示吗?我尝试搜索类似的问题,但问题似乎非常具体:S

问题显示在这里:

mysqld: Too many arguments (first extra is 'start'). 
Use --verbose --help to get a list of available options 
2015-02-19 01:41:49 37487 [ERROR] Aborting
它告诉您它不理解mysqld命令后面的单词
start
。您确实使用了
start
,但它不喜欢这样

使用:

为了便于阅读,您可以使用:

mysqld --verbose --help | more
要获取选项列表,您可能需要从中开始

最简单的启动方式是:

mysqld &
这将为流程提供背景,但是,这可能不是您想要的运行方式。我不使用cakebrew,但使用自制,这是我用来一次性启动mysql的命令

mysql.server start
此外,您还可以使用lanchctl:

To have launchd start mysql at login:
    ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
Then to load mysql now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

mysqld:参数太多(第一个额外参数是'start')。使用--verbose--help获取可用选项列表“第一个额外参数是'start'意味着什么?我确实使用了start作为第一个参数。只有一个论点。为什么有太多的参数。有太多的参数是因为mysqld告诉你有太多的参数。它告诉你“第一个额外的是开始”的意思是。。。第一个额外的参数。。。太多了。由此推断,如果1太多,那么0就足够了。听起来你把mysqld和“服务”或其他类似的Linux发行版守护进程控制程序混淆了。
To have launchd start mysql at login:
    ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
Then to load mysql now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist