percona-5.5安装笔记

 

  
  
  
  
  1. 下载Percona DB
  2. wget http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-5.5.17-22.1/source/Percona-Server-5.5.17-rel22.1.tar.gz 
  3.  
  4. 下载CMAKE
  5. wget http://www.cmake.org/files/v2.8/cmake-2.8.5.tar.gz 
  6.  
  7. 安装CMAKE
  8. tar zxf cmake-2.8.5.tar.gz   
  9. cd cmake-2.8.5   
  10. ./bootstrap   
  11. make   
  12. make install  
  13.  
  14. 为安装Percona做准备  
  15. yum install libaio-devel 
  16. useradd mysql
  17.  
  18. 安装Percona DB
  19. tar -zxvf Percona-Server-5.5.17-rel22.1.tar.gz 
  20. cd Percona-Server-5.5.17-rel22.1
  21.  
  22. 配置
  23. cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/perconamysql -DWITH_INNOBASE_STORAGE_ENGINE=1 -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci   -DWITH_DEBUG=0 -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DWITH_EMBEDDED_SERVER=OFF 
  24.  
  25. 编译安装
  26. make && make install 
  27.  
  28. 创建配置文件
  29. cp support-files/my-innodb-heavy-4G.cnf /etc/my.cnf 
  30.  
  31. 初始化数据库
  32. /usr/local/perconamysql/scripts/mysql_install_db --basedir=/usr/local/perconamysql/  --datadir=/usr/local/perconamysql/data/ --user=mysql 
  33.  
  34. 启动数据库
  35. /usr/local/perconamysql/bin/mysqld_safe --user=mysql & 

 

你可能感兴趣的:(cmake,休闲,percona,percona-5.5安装笔记,mysql-5.5源码编译)