免费注册 查看新帖 |

Chinaunix

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

[Web] -----------linux下mysql编译错误问题--------------- [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-02 12:39 |只看该作者 |倒序浏览
linux下已经安装好了apache,接着安装mysql,但按照网上提供资料配置,出错了,还请大家能给予指点。谢谢!!

[root@sp mysql-5.0.45-linux-i686-glibc23]# ./configure --prefix=/usr/local/mysqlNOTE: 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 sp.com password 'new-password'
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@sp mysql-5.0.45-linux-i686-glibc23]# Starting mysqld daemon with databases from /home/software/lamp/mysql-5.0.45-linux-i686-glibc23/data
STOPPING server from pid file /home/software/lamp/mysql-5.0.45-linux-i686-glibc23/data/sp.com.pid
080503 12:27:41  mysqld ended

论坛徽章:
0
2 [报告]
发表于 2008-06-02 13:19 |只看该作者
This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

http://www.javaeye.com/topic/135569

论坛徽章:
0
3 [报告]
发表于 2008-06-02 16:27 |只看该作者
原帖由 shipenghou 于 2008-6-2 12:39 发表
linux下已经安装好了apache,接着安装mysql,但按照网上提供资料配置,出错了,还请大家能给予指点。谢谢!!

[root@sp mysql-5.0.45-linux-i686-glibc23]# ./configure --prefix=/usr/local/mysqlNOTE: Thi ...



1.你下载的文件,根据文件名提示,它已经是编译好的二进制文件,不需要./configure;make;make install
mysql-5.0.45-linux-i686-glibc23.tar.gz

2.此安装包的方法,请看解压目录下的此文件
INSTALL-BINARY

方法类似下面
     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 --user=mysql
     shell> chown -R root  .
     shell> chown -R mysql data
     shell> chgrp -R mysql .
     shell> bin/mysqld_safe --user=mysql &

论坛徽章:
0
4 [报告]
发表于 2008-06-03 09:49 |只看该作者
参考了好些资料,算是把问题解决了一大部分,正如 todayhero  同学所说的,谢谢,但有的我也不明白,比如"shell> "我要输入什么命令才能出现shell> 呢?还有他的作用,一点也不了解,呵呵.以后查看看.不过问题还是有的,还希望大家能赏脸,多看看小弟的帖子,给出意见,谢谢

论坛徽章:
0
5 [报告]
发表于 2008-06-04 15:51 |只看该作者
This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

论坛徽章:
0
6 [报告]
发表于 2008-06-07 20:39 |只看该作者
原帖由 shipenghou 于 2008-6-3 09:49 发表
参考了好些资料,算是把问题解决了一大部分,正如 todayhero  同学所说的,谢谢,但有的我也不明白,比如"shell> "我要输入什么命令才能出现shell> 呢?还有他的作用,一点也不了解,呵呵.以后查看看.不过问题还是有的, ...

还是先学学基础的东西吧~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP