首页 > 代码库 > Percona Mysql 安装配置
Percona Mysql 安装配置
#!/bin/bash cd /root/soft tar zxvf cmake-2.8.5.tar.gz cd cmake-2.8.5 ./bootstrap make make install yum install -y libaio-devel ncurses-devel groupadd mysql useradd -g mysql mysql -s /sbin/nologin mkdir -p /data/mysqlp chown mysql.mysql /data/mysqlp cd /root/soft tar zxvf Percona-Server-5.5.32-rel31.0.tar.gz cd Percona-Server-5.5.32-rel31.0 /usr/local/bin/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql_p -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 make && make install mkdir /usr/local/mysql_p/tmp chmod 777 /usr/local/mysql_p/tmp chmod 755 /usr/local/mysql_p chown mysql.mysql -R /usr/local/mysql_p mkdir /usr/local/mysql_p/etc cp /root/soft/my.cnf /usr/local/mysql_p/etc/ /usr/local/mysql_p/scripts/mysql_install_db --basedir=/usr/local/mysql_p/ --datadir=/data/mysqlp/ --user=mysql cp support-files/mysql.server /etc/init.d/mysqld chmod +x /etc/init.d/mysqld chkconfig --add mysqld yum remove mysql -y rm -rf /usr/bin/mysql* ln -s /usr/local/mysql_p/bin/mysql* /usr/bin/ service mysqld start /usr/local/mysql_p/bin/mysqladmin -u root password "123" -S /usr/local/mysql_p/mysql.sock
注:Percona Mysql版本为:5.5.32 软件包请自行下载!
本文出自 “成都@阿状” 博客,请务必保留此出处http://azhuang.blog.51cto.com/9176790/1551549
Percona Mysql 安装配置
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。