infobright 编译安装_MySQL

php中文网
发布: 2016-05-27 14:29:51
原创
896人浏览过

bitsCN.com

infobright安装: 
需要boost 1.42 或更高版本,redhat自带的boost是1.41版本,所以需要下载个新的编译安装一下: 
下载安装boost:http://www.boost.org/users/download/ 

Shell代码  收藏代码
  1. cd boost_1_45_0  
  2. ./bootstrap.sh --prefix=/usr/local/boost_1_45_0  
  3. ./bjam install  
  4. export BOOST_ROOT=/usr/local/boost_1_45_0  
  5. echo "/usr/local/boost_1_45_0/lib" > /etc/ld.so.conf.d/boost-x86_64.conf  
  6. ldconfig  



如果没有mysql用户和组,需要加入: 

Shell代码  收藏代码
  1. shell> groupadd mysql  
  2. shell> useradd -g mysql mysql  



# 编译安装 MySQL and Infobright server and client tools 

Shell代码  收藏代码
  1. shell> cd infobright-version  
  2. shell> make EDITION=community release  
  3. shell> make EDITION=community install-release  
  4.   
  5. # Setting config file and brighthouse.ini file.  
  6. shell> cp src/build/pkgmt/my-ib.cnf /etc/  
  7.   
  8. shell> cd /usr/local/infobright  
  9. shell> bin/mysql_install_db --defaults-file=/etc/my-ib.cnf --user=mysql  
  10. shell> chown -R root  .  
  11. shell> chown -R mysql var cache  
  12. shell> chgrp -R mysql .  



安装启动脚本: 

Shell代码  收藏代码
  1. shell> cp share/mysql/mysql.server /etc/init.d/mysqld-ib  
  2. shell> vi /etc/init.d/mysqld-ib  


找到以下两行: 

Linux里PHP编译安装出错的解决方法
Linux里PHP编译安装出错的解决方法

Linux里PHP编译安装出错的解决方法

Linux里PHP编译安装出错的解决方法 315
查看详情 Linux里PHP编译安装出错的解决方法
Shell代码  收藏代码
  1. conf=@BH_CONF@  
  2. user=@BH_USER@  


修改为: 

Shell代码  收藏代码
  1. conf=/etc/mysql-ib.cnf  
  2. 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 

bitsCN.com
最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号