免费注册 查看新帖 |

Chinaunix

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

在RH9下安装mysql5出现以下错误.什么处理? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-17 13:10 |只看该作者 |倒序浏览
环境:
RH9,原来带有mysql3.23.
先 /etc/rc.d/init.d/mysql stop
然后到安装目录下运行....(红色部分是我想安装的地方,原来的是/var/lib/mysql)

[root@localhost mysql-standard-5.0.27-linux-i686]# ./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 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 localhost.localdomain 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@localhost mysql-standard-5.0.27-linux-i686]# Starting mysqld daemon with databases from /home/mysql-standard-5.0.27-linux-i686/data
STOPPING server from pid file /home/mysql-standard-5.0.27-linux-i686/data/localhost.localdomain.pid
070116 23:55:35  mysqld ended

论坛徽章:
0
2 [报告]
发表于 2007-01-17 13:17 |只看该作者
这个已经是编译好了的版本。
你可以直接运行就好了。。。不需要编译了。。。

论坛徽章:
0
3 [报告]
发表于 2007-01-17 13:36 |只看该作者
如何把安装目录下文本复制到相应的地方呢?
目录有:
drwxr-xr-x    2 503      users        4096 Oct 21 04:23 bin
-rwxr-xr-x    1 503      users         801 Oct 21 04:23 configure
-rw-r--r--    1 503      users       19071 Oct 20 20:22 COPYING
drwxr-x---    4 503      users        4096 Jan 17 00:17 data
drwxr-xr-x    2 503      users        4096 Oct 21 04:23 docs
-rw-r--r--    1 503      users        5806 Oct 21 04:18 EXCEPTIONS-CLIENT
drwxr-xr-x    2 503      users        4096 Oct 21 04:23 include
-rw-r--r--    1 503      users        7752 Oct 21 04:18 INSTALL-BINARY
drwxr-xr-x    2 503      users        4096 Oct 21 04:23 lib
drwxr-xr-x    4 503      users        4096 Oct 21 04:23 man
drwxr-xr-x    7 503      users        4096 Oct 21 04:23 mysql-test
-rw-r--r--    1 503      users        1380 Oct 20 20:22 README
drwxr-xr-x    2 503      users        4096 Oct 21 04:23 scripts
drwxr-xr-x    3 503      users        4096 Oct 21 04:23 share
drwxr-xr-x    5 503      users        4096 Oct 21 04:23 sql-bench
drwxr-xr-x    2 503      users        4096 Oct 21 04:23 support-files
drwxr-xr-x    2 503      users        4096 Oct 21 04:23 tests

论坛徽章:
0
4 [报告]
发表于 2007-01-17 14:03 |只看该作者
不用复制到其它地方,直接运行#bin/mysqld_safe --user=mysql &

论坛徽章:
0
5 [报告]
发表于 2007-01-17 14:25 |只看该作者
没有用啊
我先停下了mysql,然后到目录下运行这个命令.

系统挂了起来....

论坛徽章:
0
6 [报告]
发表于 2007-01-17 17:27 |只看该作者
确认是挂了吗?多按几下回车

论坛徽章:
0
7 [报告]
发表于 2007-01-17 18:40 |只看该作者
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!


写的明明白白是2进制发行版,不用configure.

如何安装?less INSTALL

论坛徽章:
0
8 [报告]
发表于 2007-01-18 06:58 |只看该作者
我还是不知道如何安装,
包括如何处理开机自己启动等等...

谢谢.,,,,,,我是新手.....

论坛徽章:
0
9 [报告]
发表于 2007-01-18 21:38 |只看该作者
看你下载的包里的 INSTALL-BINARY 和 README 文档,严格按照文档来进行,不会出问题。

启动脚本,在包里也都有提供。就在 support-files里面,里面的 mysql.server 就是启动脚本。

论坛徽章:
0
10 [报告]
发表于 2007-01-19 10:36 |只看该作者

为什么一样啊???

mysql> select version();
+-----------------+
| version()       |
+-----------------+
| 5.0.27-standard |
+-----------------+
1 row in set (0.01 sec)

mysql> quit
Bye
[root@localhost mysql]# mysql --version
mysql  Ver 11.18 Distrib 3.23.54, for redhat-linux-gnu (i386)
[root@localhost mysql]#
[root@localhost mysql]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP