|
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 & |
|