我试图用自制软件安装mysql。 安装成功完成,但“mysql_install_db”显示错误说明 “/usr/local/Cellar/mysql/5.6.12/bin/mysqld:未知选项' - ?'” 我不知道为什么会发生..任何人请帮助..
* 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
答案 0 :(得分:0)
我解决了这个问题。使用此声明:./scripts/mysql_install_db --user=mysql --no-defaults