infobright 编译安装_MySQL
程序员文章站
2023-12-30 13:12:52
...
bitsCN.com
infobright安装:
需要boost 1.42 或更高版本,redhat自带的boost是1.41版本,所以需要下载个新的编译安装一下:
下载安装boost:http://www.boost.org/users/download/
- cd boost_1_45_0
- ./bootstrap.sh --prefix=/usr/local/boost_1_45_0
- ./bjam install
- export BOOST_ROOT=/usr/local/boost_1_45_0
- echo "/usr/local/boost_1_45_0/lib" > /etc/ld.so.conf.d/boost-x86_64.conf
- ldconfig
如果没有mysql用户和组,需要加入:
- shell> groupadd mysql
- shell> useradd -g mysql mysql
# 编译安装 MySQL and Infobright server and client tools
- shell> cd infobright-version
- shell> make EDITION=community release
- shell> make EDITION=community install-release
- # Setting config file and brighthouse.ini file.
- shell> cp src/build/pkgmt/my-ib.cnf /etc/
- shell> cd /usr/local/infobright
- shell> bin/mysql_install_db --defaults-file=/etc/my-ib.cnf --user=mysql
- shell> chown -R root .
- shell> chown -R mysql var cache
- shell> chgrp -R mysql .
安装启动脚本:
- shell> cp share/mysql/mysql.server /etc/init.d/mysqld-ib
- shell> vi /etc/init.d/mysqld-ib
找到以下两行:
- conf=@BH_CONF@
- user=@BH_USER@
修改为:
- conf=/etc/mysql-ib.cnf
- user=mysql
启动:
shell> /etc/init.d/mysql-ib start
客户端连接:
shell> /usr/local/infobright/bin/mysql --default-file=/etc/my-ib.cnf -uroot
加入开机启动:
shell> chkconfig --add mysqld-ib
推荐阅读
-
mac-在Mac下安装了mysql,密码无法登陆
-
Ubuntu安装和卸载MYSQL
-
infobright 编译安装_MySQL
-
详细讲解如何编译MySQL内核[组图]_MySQL
-
Apache和PHP安装 php编译安装php-amq扩展简明教程
-
在 FreeBSD 10.0 上安装和配置 Nginx+PHP+APC+MySQL
-
MySQL 5.5.37编译安装详解
-
在windows iis5下安装php4.0+mysql之我见_php基础
-
centos下yum搭建安装linux+apache+mysql+php环境的方法
-
centos 下安装apache2.4.2+mysql5.5.7+php5.4