免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: py
打印 上一主题 下一主题

关于安装mysql的问题~~~~~~ [复制链接]

论坛徽章:
0
21 [报告]
发表于 2003-06-05 10:46 |只看该作者

关于安装mysql的问题~~~~~~

应该是你MYSQL用户的权限不够,errno:13见如下:
#define EACCES  13      /* Permission denied                    */

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
22 [报告]
发表于 2003-06-05 11:11 |只看该作者

关于安装mysql的问题~~~~~~

我是按照精华贴里创建用户的,
#useradd -d /usr/local/mysql/var -s /bin/false mysql
不过我还是觉得错误在libncurses.so.5的路径上,不然不会在safe_mysqld时出错吧?

论坛徽章:
0
23 [报告]
发表于 2003-06-05 11:27 |只看该作者

关于安装mysql的问题~~~~~~

编译一些免费软件尽量用gnu的gcc和make
我最近在solaris 9上编译uscpi的时候打完补丁还出问题,结果换一个gnu的make就一路顺畅的编译完了
你可以试试
还有你mysql的启动错误应该是编译的时候没有指定启动mysql的用户
你用root用户起一下试试

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
24 [报告]
发表于 2003-06-05 11:44 |只看该作者

关于安装mysql的问题~~~~~~

原帖由 "jogs" 发表:
编译一些免费软件尽量用gnu的gcc和make
我最近在solaris 9上编译uscpi的时候打完补丁还出问题,结果换一个gnu的make就一路顺畅的编译完了
你可以试试
还有你mysql的启动错误应该是编译的时候没有指定启动mysql的?.........
   

我一直在用root的,没有指定mysql用户?那就是说我用重新编译了?还有你说的gnu的make,我也听说make很爱出错所以用了make-3.80-sol8-sparc-local.gz,如果用gnu的make.tar.gz,那在#./configure 时要不要加什么参数?

论坛徽章:
0
25 [报告]
发表于 2003-06-05 11:56 |只看该作者

关于安装mysql的问题~~~~~~

这个问题简单啊,
vi /.proifle,增加如下:
LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
另外一种方法:用crle看一下系统默认的连接库,正常应该是/usr/lib
然后你用命令crle -u -l /usr/local/lib增加进新的路径。

论坛徽章:
0
26 [报告]
发表于 2003-06-05 11:58 |只看该作者

关于安装mysql的问题~~~~~~

另外你看看mysql的源代码安装文档:
shell>; groupadd mysql
shell>; useradd -g mysql mysql
shell>; gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell>; cd mysql-VERSION
shell>; ./configure --prefix=/usr/local/mysql
shell>; make
shell>; make install
shell>; scripts/mysql_install_db
shell>; chown -R root  /usr/local/mysql
shell>; chown -R mysql /usr/local/mysql/var
shell>; chgrp -R mysql /usr/local/mysql
shell>; cp support-files/my-medium.cnf /etc/my.cnf
shell>; /usr/local/mysql/bin/safe_mysqld --user=mysql &
这个步骤绝对正确。

论坛徽章:
0
27 [报告]
发表于 2003-06-05 12:12 |只看该作者

关于安装mysql的问题~~~~~~

你那个make应该也可以用

按照firebird的步骤应该不会有问题
特别是那几步该权限的一定要做

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
28 [报告]
发表于 2003-06-05 12:47 |只看该作者

关于安装mysql的问题~~~~~~

好,我这就去重编译!

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
29 [报告]
发表于 2003-06-05 14:17 |只看该作者

关于安装mysql的问题~~~~~~

原帖由 "firebird" 发表:
另外你看看mysql的源代码安装文档:
shell>; groupadd mysql
shell>; useradd -g mysql mysql
shell>; gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell>; cd mysql-VERSION
shell>; ./configur..........
   

我的系统是solaris8 sparc,按照你的步骤做到了。但到了make的时候就开始报错了,提示:
ld.so.1: ./gen_lex_hash: fatal: libstdc++.so.5: open failed: No such file or dir
ectory
make[4]: *** [lex_hash.h] Error 137
make[4]: Leaving directory `/export/spare/temp/mysql-3.23.55/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/export/spare/temp/mysql-3.23.55/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/export/spare/temp/mysql-3.23.55/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/spare/temp/mysql-3.23.55'
make: *** [all] Error 2
#
以前我看到你说,分别用gunzip,tar和放在一起用不一样,我也试了分别用gunzip和tar,结果错误提示一样。后来我在./configure这部的时候加了很多参数:
#CC=gcc CFLAGS="-O6" CXX=gcc CXXFLAGS="-O6 -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gbk --with-extra-charsets=all
这样在make的时候就没出问题。不过我还是觉得提示奇怪,在make时最后几行的提示是:
binary-configure.sh >; binary-configure-t
/usr/bin/mv binary-configure-t binary-configure
make[2]: Leaving directory `/export/spare/temp/mysql-3.23.55/support-files'
Making all in os2
make[2]: Entering directory `/export/spare/temp/mysql-3.23.55/os2'
Making all in include
make[3]: Entering directory `/export/spare/temp/mysql-3.23.55/os2/include'
Making all in sys
make[4]: Entering directory `/export/spare/temp/mysql-3.23.55/os2/include/sys'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/export/spare/temp/mysql-3.23.55/os2/include/sys'
make[4]: Entering directory `/export/spare/temp/mysql-3.23.55/os2/include'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/export/spare/temp/mysql-3.23.55/os2/include'
make[3]: Leaving directory `/export/spare/temp/mysql-3.23.55/os2/include'
make[3]: Entering directory `/export/spare/temp/mysql-3.23.55/os2'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/export/spare/temp/mysql-3.23.55/os2'
make[2]: Leaving directory `/export/spare/temp/mysql-3.23.55/os2'
make[1]: Leaving directory `/export/spare/temp/mysql-3.23.55'
#
这是成功安装了吗?

论坛徽章:
0
30 [报告]
发表于 2003-06-05 14:45 |只看该作者

关于安装mysql的问题~~~~~~

成功与否,你连一下数据库看看。
还有,你不要用SUN自带的tar,用GNU的tar,如下:
tar xzvf mysql-VERSION.tar.gz,然后按照前面的方法,把/usr/local/lib的库路径加如系统,还有干脆把autoconf,automake都安装好吧,是不是必需我也清楚,但是我就是按照这个方法编译的,从没失败过啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP