免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1541 | 回复: 3
打印 上一主题 下一主题

求助——mysql4.1.10a在freebsd4.10上无法安装的问题! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-05-20 21:17 |只看该作者 |倒序浏览
freebsd是新装的,采用mini版在vmware中安装。

启用了基本的inetd服务,打开了ftp,基本上算是很干净。

但是,mysql解压完毕后,进入安装目录,./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.

WARNING: The host '' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
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  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
# chown: mysql: illegal user name
Starting mysqld daemon with databases from /home/fzx/mysql-standard-4.1.10a-unknown-freebsd4.7-i386/data
STOPPING server from pid file /home/fzx/mysql-standard-4.1.10a-unknown-freebsd4.7-i386/data/.pid
050520 06:01:08  mysqld ended

--------------------------------------------------

何故?不解!

请高手指点。谢!

论坛徽章:
0
2 [报告]
发表于 2005-05-23 09:26 |只看该作者

求助——mysql4.1.10a在freebsd4.10上无法安装的问题!

奇怪,没有人碰到相同问题吗?

难道是我下错了版本?

论坛徽章:
0
3 [报告]
发表于 2005-05-24 17:46 |只看该作者

求助——mysql4.1.10a在freebsd4.10上无法安装的问题!

好象是说你的mysql是已经编译好的

论坛徽章:
0
4 [报告]
发表于 2005-05-25 10:45 |只看该作者

求助——mysql4.1.10a在freebsd4.10上无法安装的问题!

是啊,楼上的兄弟说的不错,我也发现了这个问题。
以前一般用ports安装,而且像apache,php等也都需要./configure(也就是说基本都是原代码包),还真没想到mysql是编译好的二进制包啊,估计主要可能是mysql的包相对较大,让用户编译不方便。

其实只要解压就基本可用了,但是也注意解压后目录的归属和权限问题,这点非常重要!!
具体步骤如下(使用的是mysql-standard-4.1.12-unknown-freebsd4.7-i386.tar.gz):
-----------------------
shell>; groupadd mysql
shell>; useradd -g mysql mysql
shell>; cd /usr/local
shell>; gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell>; ln -s full-path-to-mysql-VERSION-OS mysql
shell>; cd mysql
shell>; scripts/mysql_install_db
shell>; chown -R root  .
shell>; chown -R mysql data
shell>; chgrp -R mysql .
shell>; bin/safe_mysqld --user=mysql &
or
shell>; bin/mysqld_safe --user=mysql &
if you are running MySQL 4.x
-----------------------
前两句是添加组和用户,可能是linux版的命令,在freebsd中无法执行,请自想办法添加。
我找过论坛,看到以前也出现过类似的问题,一时看不懂,现在才明白,希望大家少走弯路。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP