linux 下 MySQL源码包的安装
2009-05-07 11:19:31 来源:WEB开发网图片看不清楚?请点击这里查看原图(大图)。
[root@localhost tmp]# cd mysql-4.0.27
进入mysql-4.0.27目录
[root@localhost mysql-4.0.27]# ls
acconfig.h configure.in INSTALL-SOURCE missing regex
acinclude.m4 COPYING isam mkinstalldirs scripts
aclocal.m4 dbug libmysql myisam sql
bdb depcomp libmysqld myisammrg sql-bench
BUILD Docs libmysql_r mysql-test strings
ChangeLog EXCEPTIONS-CLIENT ltconfig mysys support-files
client extra ltmain.sh netware tests
config.guess heap Makefile.am os2 tools
config.h.in include Makefile.in pstack vio
config.sub innobase man readline
configure install-sh merge README
[root@localhost mysql-4.0.27]#
INSTALL-SOURCE这里面有你需要的安装命令
添加mysql用户组
[root@localhost mysql-4.0.27]# groupadd mysql
You have mail in /var/spool/mail/root
添加mysql用户 并指定到mysql组中
[root@localhost mysql-4.0.27]# useradd -g mysql mysql
[root@localhost mysql-4.0.27]#
[root@localhost mysql-4.0.27]# echo "/* Linuxthreads */" >> /usr/include/pthread.h
你也可以直接运行下面这条命令直接执行编译准备,如果有错误,试试上面得阴影部分命令
[root@localhost mysql-4.0.27]# ./configure --prefix=/usr/local/mysql
更多精彩
赞助商链接