新手问题 mysql_install_db 出错 error: 35 ( OS X 10.9 Mavericks / Homebrew / MySQL)

tiberian · 2014年02月12日 · 2903 次阅读

把系统升到 Mavericks 之后,rm -rf 掉了 /usr/local 然后计划重新安装 brew 以及 ror 以及一堆东西。。。结果出师不利,求助 T^T

表示从来没遇到过这种情况,然后。。。无从下手了,求指点 T^T

mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
Installing MySQL system tables...2014-02-12 16:43:45 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-02-12 16:43:45 2358 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-02-12 16:43:45 2358 [Note] InnoDB: The InnoDB memory heap is disabled
2014-02-12 16:43:45 2358 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-02-12 16:43:45 2358 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-02-12 16:43:45 2358 [Note] InnoDB: Using CPU crc32 instructions
2014-02-12 16:43:45 2358 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-02-12 16:43:45 2358 [Note] InnoDB: Completed initialization of buffer pool
2014-02-12 16:43:45 2358 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 35
2014-02-12 16:43:45 2358 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2014-02-12 16:43:45 2358 [Note] InnoDB: Retrying to lock the first data file
2014-02

之后

ps -eaf |grep mysql
  501  2263   248   0  4:43下午 ??         0:00.03 /bin/sh /usr/local/bin/mysqld_safe
  501  2334  2263   0  4:43下午 ??         0:01.01 /usr/local/Cellar/mysql/5.6.16/bin/mysqld --basedir=/usr/local/Cellar/mysql/5.6.16 --datadir=/usr/local/var/mysql --plugin-dir=/usr/local/Cellar/mysql/5.6.16/lib/plugin --log-error=/usr/local/var/mysql/Z.local.err --pid-file=/usr/local/var/mysql/Z.local.pid
  501  2488  2370   0  5:03下午 ttys000    0:00.01 grep mysql

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号