LINUX5安装MYSQL5 unknown option '--skip-federated'

来源:百度知道 编辑:UC知道 时间:2024/06/30 06:21:27
我是按
http://www.oklinux.cn/html/sql/other/20090302/67930.html
这个教程编译 MYSQL 5.1.32 的
执行
--with-extra-charsets=GBK
--with-plugins=all
出这样的提示

[root@localhost mysql-5.1.32]# --with-extra-charsets=GBK
bash: --with-extra-charsets=GBK: command not found
[root@localhost mysql-5.1.32]# --with-plugins=all
bash: --with-plugins=all: command not found

然后我就继续执行以下的步骤
执行到
scripts/mysql_install_db
的时候提示
[root@localhost mysql-5.1.32]# scripts/mysql_install_db
Installing MySQL system tables...
090921 14:22:20 [ERROR] /usr/local/mysql/libexec/mysqld: unknown option '--skip-federated'
090921 14:22:20 [ERROR] Aborting

090921 14:22:20 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

Installation of system tables failed! Examine the logs in
/db/mysql f

你是用的RedHat的RHEL5吧,这只是Linux的大量发行版之一,Linux真正最核心的是Kernel,目前最新版本号是2.6.31,不要直接写Linux5这样的。BTW,对RHEL来讲,MySQL提供RPM包,地址是:
http://dev.mysql.com/downloads/mysql/5.1.html#linux-rhel5-x86-32bit-rpms
或者源代码包:
http://dev.mysql.com/downloads/mysql/5.1.html#source

源代码包里的configure文件会有详细的configure设置项