LinuxSir.cn,穿越时空的Linuxsir!

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

求助:MYSQL安装不能起动

[复制链接]
发表于 2003-4-27 17:10:07 | 显示全部楼层 |阅读模式
我在redhat linux 9.0安装了MYSQL 4.1.0 alpha, 到执行scripts/mysql_install_db步骤时出现错误(信息如下),查询手册,这是个已知的错误信息,但看说明我解决不了,希望过来人给个办法,我是第一次安装MYSQL!

严格按照下面的中文手册操作
http://www.chinalinuxpub.com/doc ... l#Installing_source

步骤1-6编译安装都正常!!
以下符号《《》》中的 内容为手册描述语句


《《7. 创造MySQL授权表(只有你以前没安装MySQL是必需的):
(注:redhat linux 9.0原来带MYSQL吗?我不知道)
shell>scripts/mysql_install_db
注意,在运行mysql_install_db时,那些比3.22.10旧的MySQL版本启动MySQL服务器。现在不是这样了! 下载MYSQL 4.1.0 alpha, 源代码安装包》》

*********我的操作:
[root@dhcp-61-103 mysql-4.1.0-alpha]# scripts/mysql_install_db
Sorry, the host 'dhcp-61-103' could not be looked up.(出现错误,手册中提到,但我不知道怎么解决)
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option

按照建议--force操作OK(输出信息很多,担心遗漏,就贴出了):
[root@dhcp-61-103 mysql-4.1.0-alpha]# scripts/mysql_install_db --force
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:
/usr/local/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h dhcp-61-103 password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/local/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 /usr/local ; /usr/local/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 /usr/local/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

[root@dhcp-61-103 mysql-4.1.0-alpha]# mysql --version
mysql  Ver 13.5 Distrib 4.1.0-alpha, for pc-linux (i686)


《《在所有东西安装完以后,你应该初始化并且测试你的分发。
你可以用下列命令启动MySQL服务器,这里BINDIR是safe_mysqld被安装的目录(缺省为“/usr/local/bin”):

shell> BINDIR/safe_mysqld &

如果这个命令提示mysqld daemon ended并马上失败,那么你能在文件“mysql-data-directory/'hostname'.err”找到一些信息。可能的原因是你已经有另外一个正在运行的mysqld服务器。见19.3 在同一台机器上运行多个MySQL服务器。
》》
****我的操作:
[root@dhcp-61-103 mysql-4.1.0-alpha]# mysqld_safe&
[1] 3362
[root@dhcp-61-103 mysql-4.1.0-alpha]# Starting mysqld daemon with databases from /var/lib/mysql
030427 16:38:57  mysqld ended
[1]+  Done                    mysqld_safe
[root@dhcp-61-103 mysql-4.1.0-alpha]#

结果还就有这个错误,怎么解决?文档中提到的mysql-data-directory/'hostname'.err文件也没找到,/var/lib/mysql里也没有:(
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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