发新话题
打印

mysql 5.1.30 unknown option '--skip-federated'

mysql 5.1.30 unknown option '--skip-federated'

MySQL编译安装,初始化数据库的时候出现:
unknown option '--skip-federated' 错误。

#vi /etc/my.cnf
#skip-federated 将此行注释掉
即可。
或者编译的时候加上如下参数:
--with-plugins=all

附上我的编译参数
---------------------------------------------
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O3 -pipe"
CXXFLAGS="${CFLAGS}"
./configure \
        "--prefix=/usr/local/mysql" \
        "--localstatedir=/data/mysql/data" \
        "--with-comment=Source" \
        "--with-server-suffix=-Linuxtone.Org" \
        "--with-mysqld-user=mysql" \
        "--without-debug" \
        "--with-big-tables" \
        "--with-charset=gbk" \
        "--with-collation=gbk_chinese_ci" \
        "--with-extra-charsets=all" \
        "--with-pthread" \
        "--enable-static" \
        "--enable-thread-safe-client" \

TOP

发新话题
最近访问的版块