首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >brew mysql5.6 mysql_install_db错误

brew mysql5.6 mysql_install_db错误
EN

Stack Overflow用户
提问于 2013-06-24 19:54:48
回答 1查看 2.9K关注 0票数 0

我正在尝试用自制软件安装mysql。安装已成功完成,但"mysql_install_db“显示错误,提示"/usr/local/Cellar/mysql/5.6.12/bin/mysqld:未知选项'--?'”我不知道为什么会这样。有谁请帮帮忙..。

代码语言:javascript
复制
* unset TMPDIR
* mysql_install_db --verbose --basedir=/usr/local/Cellar/mysql/5.6.12 --datadir=/usr/local/var/mysql --tmpdir=/tmp
Installing MySQL system tables...2013-06-24 20:49:40 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2013-06-24 20:49:40 7fff7c0fe180 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2013-06-24 20:49:40 32316 [Note] InnoDB: The InnoDB memory heap is disabled
2013-06-24 20:49:40 32316 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2013-06-24 20:49:40 32316 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-06-24 20:49:40 32316 [Note] InnoDB: Using CPU crc32 instructions
2013-06-24 20:49:40 32316 [Note] InnoDB: Initializing buffer pool, size = 300.0M
2013-06-24 20:49:40 32316 [Note] InnoDB: Completed initialization of buffer pool
2013-06-24 20:49:40 32316 [Note] InnoDB: Highest supported file format is Barracuda.
2013-06-24 20:49:40 32316 [Note] InnoDB: 128 rollback segment(s) are active.
2013-06-24 20:49:40 32316 [Note] InnoDB: Waiting for purge to start
2013-06-24 20:49:40 32316 [Note] InnoDB: 5.6.12 started; log sequence number 1626304
2013-06-24 20:49:40 32316 [ERROR] /usr/local/Cellar/mysql/5.6.12/bin/mysqld: unknown option '--?'
2013-06-24 20:49:40 32316 [ERROR] Aborting

2013-06-24 20:49:40 32316 [Note] Binlog end
2013-06-24 20:49:40 32316 [Note] InnoDB: FTS optimize thread exiting.
2013-06-24 20:49:40 32316 [Note] InnoDB: Starting shutdown...
2013-06-24 20:49:41 32316 [Note] InnoDB: Shutdown completed; log sequence number 1626314
2013-06-24 20:49:41 32316 [Note] /usr/local/Cellar/mysql/5.6.12/bin/mysqld: Shutdown complete
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-09-10 19:02:01

我已经解决了这个问题。使用以下语句:./scripts/mysql_install_db --user=mysql --no-defaults

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17274860

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档