首页 > 代码库 > 九仙mysql_HandlerSocket_rockmongo安装
九仙mysql_HandlerSocket_rockmongo安装
CentOS 6.5 MySQL 5.6.33 HandlerSocket 1.1.2 # Get packages shell> wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.33.tar.gz shell> wget https://github.com/DeNA/HandlerSocket-Plugin-for-MySQL/archive/1.1.2.tar.gz shell> mv 1.1.2.tar.gz handlerSocket-1.1.2.tar.gz ## MySQL # System Requirements shell> sudo yum install cmake make gcc gcc-c++ perl ncurses-devel bison libtool shell> sudo mv /etc/my.cnf /etc/my.cnf.bak (dependes) # Preconfiguration setup shell> sudo groupadd mysql shell> sudo useradd -r -g mysql -s /bin/false mysql # Beginning of source-build specific instructions shell> tar zxvf mysql-5.6.33.tar.gz shell> cd mysql-5.6.33 shell> cmake . shell> make shell> sudo make install # End of source-build specific instructions # Postinstallation setup shell> cd /usr/local/mysql shell> sudo chown -R mysql:mysql . shell> sudo scripts/mysql_install_db --user=mysql shell> sudo chown -R root . shell> sudo chown -R mysql data shell> sudo bin/mysqld_safe --user=mysql & # Next command is optional shell> sudo cp support-files/mysql.server /etc/init.d/mysqld ## HandlerSocket # Build Handlersocket shell> tar zxvf handlerSocket-1.1.2.tar.gz shell> cd HandlerSocket-Plugin-for-MySQL-1.1.2 shell> ./autogen.sh shell> ./configure --with-mysql-source=/tmp/mysql-5.6.33 --with-mysql-bindir=/usr/local/mysql/bin --with-mysql-plugindir=/usr/local/mysql/lib/plugin shell> make shell> sudo make install # Using Handlersocket shell> sudo sh -c "echo ‘[mysqld] loose_handlersocket_port = 9998 loose_handlersocket_port_wr = 9999 loose_handlersocket_threads = 16 loose_handlersocket_threads_wr = 1 open_files_limit = 65535 ‘ >> /usr/local/mysql/my.cnf" # Log in to mysql as root mysql> install plugin handlersocket soname ‘handlersocket.so‘; ---------- 附:二进制包/源码安装方式的MySQL卸载 1.关闭MySQL服务进程 shell> sudo service mysqld stop 2.查找MySQL的安装目录并彻底删除 #系统自带的mysql-libs包不要卸载,对应目录不要删掉:/usr/share/mysql, /usr/lib64/mysql shell> sudo find / -name mysql shell> sudo rm -rf xxx ... 3.视情况删除配置文件my.cnf 4.视情况删除MySQL用户以及用户组
九仙mysql_HandlerSocket_rockmongo安装
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。