免费注册 查看新帖 |

Chinaunix

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

MYSQL安装的精华贴(MYSQL的安装手册部分翻译) [复制链接]

论坛徽章:
0
31 [报告]
发表于 2005-05-19 08:54 |只看该作者

MYSQL安装的精华贴(MYSQL的安装手册部分翻译)

make install后运行源码包里的
/scripts/mysql_install_db --user=mysql
有的地方说做个链接也能满足要求!注意这是不对的,因为只有系统在安装的时候勾选mysql在/var/lib/mysql/mysql.sock才会有。做链接只是用的是系统的的mysql的mysql.sock。

论坛徽章:
0
32 [报告]
发表于 2005-05-19 09:27 |只看该作者

MYSQL安装的精华贴(MYSQL的安装手册部分翻译)

不好意思,上面我好像说错了。链接可以的,是这样的。
运行源码包下面的scripts/mysql_install_db后在/var/lib/mysql/下会产生一个mysql.sock。需要做链接。
  或是在configure的时候加上--with-unix-socket-path=/var/lib/mysql/mysql.sock

论坛徽章:
0
33 [报告]
发表于 2005-05-19 11:50 |只看该作者

MYSQL安装的精华贴(MYSQL的安装手册部分翻译)

我试过了,成功拉,谢谢楼主~~~

论坛徽章:
0
34 [报告]
发表于 2005-05-21 21:52 |只看该作者

MYSQL安装的精华贴(MYSQL的安装手册部分翻译)

谢谢提供!支持!!!

论坛徽章:
0
35 [报告]
发表于 2005-05-23 09:43 |只看该作者

MYSQL安装的精华贴(MYSQL的安装手册部分翻译)

原帖由 "smtp"]ase2 mysql-standard-4.1.0-alpha-pc-linux-i686 发表:
# make intall
make: *** No rule to make target `intall'.  Stop.


老兄,是说没有“目标”可以make,估计你得先./configure吧。

论坛徽章:
0
36 [报告]
发表于 2005-05-23 21:43 |只看该作者

MYSQL安装的精华贴(MYSQL的安装手册部分翻译)

不好意思呀,我是一个新手呀,现在做一个Apache和mysql作业,要把身份验证放在mysql里面,请速回,急呀

论坛徽章:
0
37 [报告]
发表于 2005-05-29 09:31 |只看该作者

MYSQL安装的精华贴(MYSQL的安装手册部分翻译)

[root@Johnite mysql-3.22.32-pc-linux-gnu-i686]# ./configure --prefix=/web/mysql
WARNING: Your libc libraries are not 100 % compatible with this MySQL version
mysqld should work normally with the exception that host name resolving
will not work.  This means that you should use IP addresses instead
of hostnames when specifying MySQL privileges !
Creating db table
Creating host table
Creating user table
Creating func table
Creating tables_priv table
Creating columns_priv table
./scripts/mysql_install_db: line 317:  3015 段错误                  $execdir/mysqld --bootstrap --skip-grant-tables --basedir=. --datadir=$ldata "$@"  <<END_OF_DATA
use mysql;
$c_d
$i_d

$c_h
$i_h

$c_u
$i_u

$c_f
$i_f

$c_t
$c_c
END_OF_DATA

Installation of grant tables failed!

Examine the logs in /var/lib/mysql for more information.
You can also try to start the mysqld demon with:
./bin/mysqld --skip-grant &
You can use the command line tool
./bin/mysql to connect to the mysql
database and look at the grant tables:

shell>; ./bin/mysql -u root mysql
mysql>; show tables

Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the ./bin/mysqlbug script!
[root@Johnite mysql-3.22.32-pc-linux-gnu-i686]#

论坛徽章:
0
38 [报告]
发表于 2005-06-19 01:08 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
39 [报告]
发表于 2005-07-05 14:49 |只看该作者

MYSQL安装的精华贴(MYSQL的安装手册部分翻译)

为什么我执行了如下命令后./configure --prefix=/usr/local/mysql,在make 的时候出现了如下错误:  make: *** No targets specified and no makefile found.  Stop.

论坛徽章:
0
40 [报告]
发表于 2005-08-08 11:01 |只看该作者

MYSQL安装的精华贴(MYSQL的安装手册部分翻译)

原帖由 "seafowl" 发表:
对不起,我还是要问
1、我在安装完2进制包后,发scripts/mysql_install_db
命令,出现以下错误:
/usr/local/mysql/scripts/mysql_install_db: /usr/local/bin/hostname: 不能执行

2、我安装SRC文件,是一个TAR.GZ压..........

to seafow:
1、/usr/local/mysql/scripts/mysql_install_db --force
2、
分别装上一些GNU的小东东:perl,tar,gzip,gcc, libstdc,
#gunzip *.gz
#tar –xvf apache_1.3.26,mysql4.0.1,php4.3.2
#PATH=/bin:/usr/bin:/usr/sbin:/etc/:/usr/local/bin:/usr/ccs/bin
#cd /mysql.4.3.2
#which perl(检查你系统的perl的位置,若为/bin/perl)
#cd tests把这个目录中所有以pl结尾的文件的perl解释器的位置改为#!/bin/perl
#CC=gcc CFLAGS="-O6" CXX=gcc CXXFLAGS="-O6 -felide-constructors -fno-exceptions -fno-rtti" CFLAGS=-DHAVE_CURSES_H CXXFLAGS=-DHAVE_CURSES_H ./ configure --prefix=/usr/local/mysql --with-mysqld-user=mysql --with-charset=gbk --with-extra-charsets=all
#make ;make install
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP