Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

源码编译安装系列-MYSQL

[复制链接]
platinum 发表于 2004-10-22 16:39:34 | 显示全部楼层 |阅读模式
作者:白金 网名:platinum(chinaunix) 超超白金(白金论坛)  
欢迎转载,转载请保留上述信息  
===========================================================================


安装MySQL数据库:

1、tar xzvf mysql*.tar.gz
2、useradd mysql
3、cd mysql*
4、./configure --prefix=/usr/local/mysql --mandir=/usr/share/man
5、make
6、make install
7、cp support-files/my-medium.cnf /etc/my.cnf
8、/usr/local/mysql/bin/mysql_install_db --user=mysql
9、chown -R mysql.mysql /usr/local/mysql/var
A、/usr/local/mysql/bin/mysqld_safe --user=mysql &

添加mysqld服务
cp support-files/mysql.server /etc/rc.d/init.d/mysqld
chmod a+x /etc/rc.d/init.d/mysqld
chkconfig --add mysql
jk0wg 发表于 2005-1-17 19:25:55 | 显示全部楼层
4.0.23的MYSQL在freeBSD5.3下照你的这个方法安装不了....   提示:

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.

/usr/libexec/ld-elf.so.1: Shared object "libm.so.2" not found, required by "my_print_defaults"
Neither host 'bbs' nor 'localhost' could not be looked up with
./bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option
回复

使用道具 举报

AliveAgain 发表于 2005-1-27 22:03:24 | 显示全部楼层
chkconfig --add mysql
应为
chkconfig --add mysqld
回复

使用道具 举报

yuqiyong 发表于 2005-8-1 10:37:40 | 显示全部楼层

Re: 在 BSD上升級 sfs3的錯誤

Re: 在 BSD上升級 sfs3的錯誤
ln -s /lib/libm.so.3 /lib/libm.so.2
ln -s /lib/libutil.so.4 /lib/libutil.so.3
ln -s /lib/libc.so.5 /lib/libc.so.4

FreeBSD 5.3 以上為新的.重做一個連結即可更新.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-12-23 23:35 , Processed in 0.023494 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表