免费注册 查看新帖 |

Chinaunix

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

(已解决)Red Hat Enterprise Linux 5.0下装mysql5.0的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-26 11:38 |只看该作者 |倒序浏览
Red Hat Enterprise Linux 5.0下装mysql5.0的问题
曾经用下列版本的mysql
mysql-5.0.37-linux-i686-glibc23.tar.gz
mysql-5.0.37-linux-i686-icc-glibc23.tar.gz
解压后执行./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 redhat5 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 http://shop.mysql.com
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
[root@redhat5 mysql-5.0.37-linux-i686-glibc23]# Starting mysqld daemon with databases from /usr/local/src/mysql-5.0.37-linux-i686-glibc23/data
STOPPING server from pid file /usr/local/src/mysql-5.0.37-linux-i686-glibc23/data/redhat5.pid
070426 19:23:08  mysqld ended

[ 本帖最后由 zhdh1999 于 2007-5-3 22:02 编辑 ]

论坛徽章:
1
巳蛇
日期:2014-12-29 11:22:41
2 [报告]
发表于 2007-04-27 09:25 |只看该作者
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

翻译:本软件包为MySQL二进制发行版。直接解压后运行即可,无需重新编译。

论坛徽章:
0
3 [报告]
发表于 2007-04-28 16:36 |只看该作者
原帖由 bjchenxu 于 2007-4-27 09:25 发表
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

翻译:本软件包为MySQL二进制发行版。直接解压后运行即可,无需重新编译。

是直接在mysql-5.0.37-linux-i686-icc-glibc23目录下配置就可以吗?
  新手!

论坛徽章:
0
4 [报告]
发表于 2007-04-28 17:31 |只看该作者

.

这是我在freebsd下装mysql的过程
1) pw groupadd mysql

2) pw useradd mysql -g mysql

3) cd /usr/local

4) tar zxvf /path/to/mysql-VERSION-OS.tar.gz

5) ln -s full-path-to-mysql-VERSION-OS mysql

6) cd mysql

7) scripts/mysql_install_db --user=mysql

chown -R root .

9) chown -R mysql data

10) chgrp -R mysql .

11) mysqld_safe --user=mysql &

12) 更改root的密码:

   1) shell> mysql -u root
   2) mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');
   3) mysql> SET PASSWORD FOR 'root'@'host_name' = PASSWORD('newpwd');
13) 设置随机自动启动mysql:

   1) 如果在/usr/local/bin/下找到mysql.server,直接继续执行第2步。
      否则,说明是按照原文件的方式编译安装的,则需要在mysql的源文件目录下的
      support-files/目录下,将mysql.server这个命令copy到/usr/local/bin/。
      sudo cp ./support-files/mysql.server /usr/local/bin/
   2) cd /usr/local/etc/rc.d/ ;
   3) sudo ln -s /usr/local/bin/mysql.server ./mysql.server.sh
      注意该处是要link为mysql.server.sh,并且要给与mysql.server.sh执行权
没用过Red Hat 具体命令可能稍有不同

论坛徽章:
0
5 [报告]
发表于 2007-05-03 22:06 |只看该作者
原帖由 lizheng83 于 2007-4-28 17:31 发表
这是我在freebsd下装mysql的过程
1) pw groupadd mysql

2) pw useradd mysql -g mysql

3) cd /usr/local

4) tar zxvf /path/to/mysql-VERSION-OS.tar.gz

5) ln -s full-path-to-mysql-VERSION-O ...

太谢谢了 ,新手,看的资料少,才导致问了这么傻的问题。
现在解决了,多谢大家的帮忙
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP