0

我试图用自制软件安装 mysql。安装成功完成,但“mysql_install_db”显示错误“/usr/local/Cellar/mysql/5.6.12/bin/mysqld: unknown option '--?'”我不知道为什么会发生。任何人请帮忙..

* 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
4

1 回答 1

0

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

于 2013-09-10T11:02:01.153 回答