zippo_qq 发表于 2005-5-6 15:16:33

安装mysql4.1的时候老是不能config

# ./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
Fill help 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 !
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
# Starting mysqld daemon with databases from /root/mysql-standard-4.1.11-pc-linux-gnu-i686/data
STOPPING server from pid file /root/mysql-standard-4.1.11-pc-linux-gnu-i686/data/localhost.localdomain.pid
050506 15:10:31mysqld ended


这个是什么问题阿???为什么我不能configure???是不是少装了什么东西?
急。。在线等。。今天一定要解决mysql

zippo_qq 发表于 2005-5-6 15:43:24

我知道了原来是不需要config

可是在scripts/mysql_install_db
确出现了新的问题

# ./mysql_install_db
./mysql_install_db: line 86: my_print_defaults: command not found
Could not find help file 'fill_help_tables.sql' in ./support-files or inside ..

zippo_qq 发表于 2005-5-6 15:55:10

解决了
正确步骤如下:

addgroup mysql
useradd -g mysql mysql
cd mysq
scripts/mysql_install_db
chown -R root /usr/local/mysql
chown -R mysql /usr/local/mysql/data
chgrp -R mysql /usr/local/mysql
bin/safe_mysqld --user=mysql&
在启动前,应该把/usr/local/mysql/support-files/my-medium.cnf copy 成
/etc/my.cnf
为 root 设置密码

/usr/local/mysql/bin/mysqladmin -u root -p password your_new_password

注意,第一个 password 是命令的参数,依原样键入,而 your_new_password 就是你要设置的新密码。例如,要将 root 密码设为123456,那么这样输入命令:

/usr/local/mysql/bin/mysqladmin -u root -p password 123456

回车后系统会提示你输入当前密码,应该是像下面这样:

Enter password:

因为此时还没有密码,所以直接回车即可,这时没有任何提示返回提示符状态,而密码已经设置完成。此时可以通过关闭 MySQL 服务验证密码是否生效:

/usr/local/mysql/bin/mysqladmin -u root -p shutdown
Enter password:123456

系统提示 MySQL 已关闭:

020531 13:14:35 mysql ended
+ Done /usr/local/mysql/bin/safe_mysqld --user=mysql

##########################################################################
页: [1]
查看完整版本: 安装mysql4.1的时候老是不能config