免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2232 | 回复: 6

./configure出错?安装MYsql问题. [复制链接]

论坛徽章:
0
发表于 2008-09-25 14:36 |显示全部楼层
虚拟机上安装mysql.
256M内存.8G IDE硬盘
虚拟机vmware workstation 6.0安装的Redhat as4.
安装了Xwindow.开发工具,系统管理.windows文件服务.
全新安装了以后,用smb将mysql-5.0.67-linux-i686-glibc23.tar.gz
参照安装手册:http://dev.mysql.com/doc/refman/ ... l#installing-binary  (2.8.1源码安装概述)
放到AS4中,用root身份登录,解压后执行
groupadd mysql
useradd -g mysql 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.
Installing MySQL system tables...
OK
Filling help tables...
OK
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 rc password 'new-password'

Alternatively you can run:
./bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

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 http://shop.mysql.com
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@rc mysql-5.0.67-linux-i686-glibc23]# Starting mysqld daemon with databases from /tmp/mysql-5.0.67-linux-i686-glibc23/data
STOPPING server from pid file /tmp/mysql-5.0.67-linux-i686-glibc23/data/rc.pid
080925 14:05:55  mysqld ended

[ 本帖最后由 shang12 于 2008-9-25 14:52 编辑 ]

论坛徽章:
0
发表于 2008-09-25 15:39 |显示全部楼层

回复 #1 shang12 的帖子

晕,你下载的编译好的mysql二进制版本,直接解压就可以了,不用再编译了

论坛徽章:
0
发表于 2008-09-25 15:55 |显示全部楼层
..........................郁闷....原来是这样...

论坛徽章:
0
发表于 2008-09-25 16:02 |显示全部楼层
谢谢..

论坛徽章:
0
发表于 2008-09-25 16:05 |显示全部楼层
在这个文件夹下面的有一个scripts目录,里面有一个mysql_install_db,运行这个就好了。

另外要注意一下这些目录的权限,owner

论坛徽章:
0
发表于 2008-09-25 16:45 |显示全部楼层
原帖由 mokai 于 2008-9-25 16:05 发表
在这个文件夹下面的有一个scripts目录,里面有一个mysql_install_db,运行这个就好了。

另外要注意一下这些目录的权限,owner

这个是初始化MYsql是吗?
现在又遇到一个新的问题.就是我在/usr/local/下找不到mysql.是需要自己移动到那边的么?还是需要怎样操作的.我现在放在tmp下.现在启动时启动不了的.
[root@rc mysql-5.0.67-linux-i686-glibc23]# bin/mysqld_safe --user=mysql &
[1] 13525
[root@rc mysql-5.0.67-linux-i686-glibc23]# Starting mysqld daemon with databases from /tmp/mysql-5.0.67-linux-i686-glibc23/data
STOPPING server from pid file /tmp/mysql-5.0.67-linux-i686-glibc23/data/rc.pid
080925 15:34:52  mysqld ended
出现这样的错误.是没有那个pid么?

论坛徽章:
0
发表于 2008-09-25 18:58 |显示全部楼层

回复 #6 shang12 的帖子

这个可执行文件你放到哪里都可以。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP