免费注册 查看新帖 |

Chinaunix

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

(help)启动mysql时出现一个错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-17 16:43 |只看该作者 |倒序浏览
version:  mysql-4.1.16
安装过程一切正常,没有提示错误信息!!

#groupadd mysql
#useradd -g mysql mysql
#chgrp -R mysql /usr/local/mysql/
#tar zxvf mysql-4.1.16.tar.gz   
#cd mysql-4.1.16
#./configure --prefix=/usr/local/mysql
#make
#make install
#cp support-files/my-medium.cnf /etc/my.cnf   
#cd /usr/local/mysql
#bin/mysql_install_db --user=mysql   
接下来就是下面的错误了!





[root@host1 bin]# ./mysql_install_db --user=mysql
Installing all prepared tables
Fill help tables
ERROR: 1064  You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
051217 16:33:33 [ERROR] Aborting

051217 16:33:33 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

./mysql_install_db: line 299:  3928 断开的管道              cat $fill_help_tables

WARNING: HELP FILES ARE NOT COMPLETELY INSTALLED!
The "HELP" command might not work properly


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:
/usr/local/mysql/bin/mysqladmin -u root password 'new-password'
/usr/local/mysql/bin/mysqladmin -u root -h host1.test.cn password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/local/mysql/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 /usr/local/mysql ; /usr/local/mysql/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 /usr/local/mysql/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



请各位帮忙,谢谢!!!

[ 本帖最后由 lazy_bug 于 2005-12-17 17:35 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2005-12-29 16:29 |只看该作者
顶一下。。。我怎么跟你一个错误啊。。。是不是这个版本有毛病啊?????

论坛徽章:
0
3 [报告]
发表于 2005-12-29 17:14 |只看该作者
实施这个
你那个有点乱
#groupadd mysql
#useradd -g mysql mysql
#cd /usr/local
#tar zxf mysql-standard-4.1.13-pc-linux-gnu-i686.tar.gz
#ln -s mysql-standard-4.1.13-pc-linux-gnu-i686 mysql
#cd mysql
#scripts/mysql_install_db --user=mysql
#chgrp -R mysql *
#bin/mysqld_safe --user=mysql &

论坛徽章:
0
4 [报告]
发表于 2005-12-29 19:47 |只看该作者
我就是楼上的安装方法,到#scripts/mysql_install_db --user=mysql 这一步就报错了,版本是rh as3 up6 ,奇怪死了,,,,5.0.17倒是过去了,4这个版本就是报这个错

论坛徽章:
0
5 [报告]
发表于 2005-12-29 20:13 |只看该作者
换个版本!!呵呵

论坛徽章:
0
6 [报告]
发表于 2006-01-12 11:00 |只看该作者
我也遇到了这样的问题,期待解决

论坛徽章:
0
7 [报告]
发表于 2006-01-16 11:35 |只看该作者
不好意思,最近忙着准备邮件服务器的测试,少上论坛了,以上的问题我找了很多官方的网站,有人也碰到这个问题,我不知道这是不是bug ,水平有限啊,没办法我最后只能换成高版本的!我个人觉得最好还是用高版本的!!

论坛徽章:
0
8 [报告]
发表于 2006-01-16 14:16 |只看该作者

安装完毕后权限设置不对,你应该看看INSTALL

原帖由 lazy_bug 于 2005-12-17 16:43 发表
version:  mysql-4.1.16
安装过程一切正常,没有提示错误信息!!

#groupadd mysql
#useradd -g mysql mysql
#chgrp -R mysql /usr/local/mysql/
#tar zxvf mysql-4.1.16.tar.gz   
#cd mysql-4.1.16
#./co ...

安装完毕后权限设置不对,你怎么还没有安装就设置权限了?
#chown -R root /usr/local/mysql
#chown -R mysql /usr/local/mysql/var
#chgrp -R mysql /usr/local/mysql

[ 本帖最后由 liu1084 于 2006-1-16 14:18 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP