找回密码
 注册
查看: 1597|回复: 6

mysql安装错误!寻求帮助!(已解决)

[复制链接]
发表于 2005-9-13 09:26:18 | 显示全部楼层 |阅读模式
./configure
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
[root@localhost mysql]# Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/localhost.localdomain.pid
050913 09:24:09  mysqld ended
发表于 2005-9-13 09:55:12 | 显示全部楼层
安装前先把老版本卸掉:
#rpm -qa mysql
#rpm -e mysql-xxx(rpm-qa 查询出来的包名)
如果原来使用过,还应该先备份老库:
#mysql_dump -p --add-locks db > db.out
并删除老库:
#rm -r /var/lib/mysql
回复

使用道具 举报

发表于 2005-9-13 13:46:22 | 显示全部楼层
我觉的好象你是用rpm的方法来安装了二进制的包了,如果你是在Redhat 下的话,建议使用rpm否则你在configure时,永远改不了安装地方
回复

使用道具 举报

发表于 2005-9-13 13:50:57 | 显示全部楼层
源码包比rpm包可靠,而且RH对源码包的支持也很好,还是安装源码包好。
回复

使用道具 举报

发表于 2005-9-13 22:48:16 | 显示全部楼层
我在RH9.0用源码包安装mysql4.02有楼主一样的情况,不过mysql不用./configure也能使用,可以直接运行mysql安装文件中bin下的mysqld_safe.

先建立一个mysql和mysql用户来访问mysql:
# groupadd mysql #建立mysql组
# useradd mysql -g mysql #建立mysql用户并且加入到mysql组中
进入mysql安装目录
# cd /usr/local/mysql
# ./scripts/mysql_install_db --user=mysql #初试化表并且规定用mysql用户来访问初始化表以后就开始给mysql和root用户设定访问权限,

然后设置权限

# chown -R root . #设定root能访问/usr/local/mysql
# chown -R mysql data #设定mysql用户能访问/usr/local/mysql/data里面存的是mysql的数据库文件
# chown -R mysql data/. #设定mysql用户能访问/usr/local/mysql/data下的所有文件
# chown -R mysql data/mysql/. #设定mysql用户能访问/usr/local/mysql/data/mysql下的所有文件
# chgrp -R mysql . #设定mysql组能够访问/usr/local/mysql

/usr/local/mysql/bin/mysqld_safe --user=mysql &
应该会出现类似这样的提示:
[1] 42264
# Starting mysqld daemon with databases from /usr/local/mysql/data
mysql运行成功!
用如下命令修改MYSQL密码,默认安装密码为空,为了安全你可以修改
/usr/local/mysql/bin/mysqladmin -u root password yusaihua
现在修改的密码为:yusaihua
/usr/local/mysql/bin/mysql -u root -p
提示输入密码
yusaihua
show databases; --显示数据库命令
use mysql;---使用mysql数据库
show tables;--显示mysql中的表
回复

使用道具 举报

发表于 2005-9-14 14:40:33 | 显示全部楼层
有一种源码包已经编好了,不用安装解开就可以用。
回复

使用道具 举报

发表于 2005-9-14 17:33:33 | 显示全部楼层
看来不懂英文的不只我一个啊,呵呵
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

这个是mysql的二进制版本,可以直接运行,你不需要配置它
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-13 21:29 , Processed in 0.068624 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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