<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>tiberian</title>
    <link>https://ruby-china.org/tiberian</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>mysql_install_db 出错 error: 35 ( OS X 10.9 Mavericks / Homebrew / MySQL)</title>
      <description>&lt;p&gt;把系统升到 Mavericks 之后，rm -rf 掉了 /usr/local 然后计划重新安装 brew 以及 ror 以及一堆东西。。。结果出师不利，求助 T^T&lt;/p&gt;

&lt;p&gt;表示从来没遇到过这种情况，然后。。。无从下手了，求指点 T^T&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;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
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;之后&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;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

&lt;/code&gt;&lt;/pre&gt;</description>
      <author>tiberian</author>
      <pubDate>Wed, 12 Feb 2014 18:00:39 +0800</pubDate>
      <link>https://ruby-china.org/topics/17204</link>
      <guid>https://ruby-china.org/topics/17204</guid>
    </item>
  </channel>
</rss>
