LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 982|回复: 6

【求助】急!!Red Hat 9下MySQL 4.1.7安装问题!!!

[复制链接]
发表于 2004-11-13 13:59:40 | 显示全部楼层 |阅读模式
MySQL版本:
mysql-standard-4.1.7-pc-linux-i686.tar.gz

每一步都按照手册里的说明进行的,./configure时出错,无法生成makefile文件,谁能解决一下???急!


下面是出错的信息(在/tmp/下,已经添加了用户mysql和组):

[root@localhost mysql-standard-4.1.7-pc-linux-i686]# ls

bin docs lib scripts tests
configure EXCEPTIONS-CLIENT man share
COPYING include mysql-test sql-bench
data INSTALL-BINARY README support-files

[root@localhost mysql-standard-4.1.7-pc-linux-i686]# ./configure --prefix=/usr/local/mysql

NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!
To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you. If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables
041113 13:20:52 [Warning] Asked for 196608 thread stack, but got 126976
Fill help tables
041113 13:20:52 [Warning] Asked for 196608 thread stack, but got 126976

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.

NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@localhost mysql-standard-4.1.7-pc-linux-i686]# Starting mysqld daemon with databases from /tmp/mysql-standard-4.1.7-pc-linux-i686/data
STOPPING server from pid file /tmp/mysql-standard-4.1.7-pc-linux-i686/data/localhost.localdomain.pid
041113 13:20:53 mysqld ended


[root@localhost mysql-standard-4.1.7-pc-linux-i686]#

手册里面让用./configure和make安装,提示信息里面又说不用安装,到底听谁的啊?



MySQL Reference Manual for version 4.1.7.的安装指导:

2.3.1 Source Installation Overview

The basic commands you must execute to install a MySQL source distribution are:

shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> cd /usr/local/mysql
shell> bin/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
发表于 2004-11-13 14:05:33 | 显示全部楼层
那是源代码安装,你下的是bin代码
发表于 2004-11-13 14:05:38 | 显示全部楼层
那是源代码安装,你下的是bin代码
 楼主| 发表于 2004-11-13 14:36:51 | 显示全部楼层
多谢指点!我刚上手3天,基本上什么都不清楚...那应该怎么安装呢?
发表于 2004-11-24 13:20:57 | 显示全部楼层
安装mysql-standard-4.1.7-pc-linux-i686-icc-glibc23.tar.gz(binary distribution)
tar xzvf icc-8.0-libs.tar.gz
cp icc-8.0-libs/lib* /lib
groupadd mysql
useradd -g mysql mysql
cd /usr/local/src
tar xzvf mysql-standard-4.1.7-pc-linux-i686-icc-glibc23.tar.gz -C /usr/local
mv /usr/local/mysql-standard-4.1.7-pc-linux-i686-icc-glibc23 /usr/local/mysql
cd /usr/local/mysql
scripts/mysql_install_db --user=mysql
chown -R root.mysql .
chown -R mysql data
chkconfig --add mysqld
chkconfig --level 35 mysqld on
chkconfig --level 01246 mysqld off
发表于 2004-12-8 20:00:25 | 显示全部楼层

给你的回复

上面的老兄说的有道理啊
你下的是源码人家已经编译好了,你只要建设个帐号和密码就可以了
不过你不知道人家编译到哪里了
最好下个能编译的
发表于 2005-1-7 19:29:31 | 显示全部楼层
要源包才能编译的。源包只有版本号。没有分server和stand版的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表