Chinaunix

标题: 这是什么原因啊,请大家帮忙,是不是我少了哪一步呀? [打印本页]

作者: smtp    时间: 2003-05-14 10:53
标题: 这是什么原因啊,请大家帮忙,是不是我少了哪一步呀?
安装MYSQL4。10出现下面问题
REDHAT 7。2  ,安装在/OPT目录下面
这是什么原因啊,请大家帮忙,是不是我少了哪一步呀?

这是论谈的安装方法
#groupadd mysql
#useradd -g mysql mysql
#gunzip < mysql-VERSION.tar.gz | tar -xvf -
#cd mysql-VERSION
#./configure --prefix=/usr/local/mysql
#make
#make install
#scripts/mysql_install_db
#chown -R root /usr/local/mysql
#chown -R mysql /usr/local/mysql/var
#chgrp -R mysql /usr/local/mysql
#cp support-files/my-medium.cnf /etc/my.cnf (overwrite?-->;yes)
#/usr/local/mysql/bin/safe_mysqld --user=mysql &

做到这一步就不可以了
[root@sybase2 mysql-standard-4.1.0-alpha-pc-linux-i686]# make
make: *** No targets specified and no makefile found. Stop.

[root@sybase2 mysql-standard-4.1.0-alpha-pc-linux-i686]# make intall
make: *** No rule to make target `intall'. Stop.
作者: sakulagi    时间: 2003-05-14 11:21
标题: 这是什么原因啊,请大家帮忙,是不是我少了哪一步呀?
#./configure --prefix=/usr/local/mysql

你确定这一步成功了?
作者: smtp    时间: 2003-05-14 11:39
标题: 这是什么原因啊,请大家帮忙,是不是我少了哪一步呀?
做。/ 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 privilege tables

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 !
This is done with:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h sybase2 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@sybase2 mysql]#
[root@sybase2 mysql]# Starting mysqld daemon with databases from /opt/mysql/data
030514 03:37:28  mysqld ended
作者: sakulagi    时间: 2003-05-14 12:51
标题: 这是什么原因啊,请大家帮忙,是不是我少了哪一步呀?
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

已经说的很清楚了。这个是不用编译的版本,直接就可以用了。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2