ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux下Percona-Server(mysql衍生版)的安装

linux下Percona-Server(mysql衍生版)的安装

原创 Linux操作系统 作者:season0891 时间:2012-01-19 15:22:56 0 删除 编辑
inux下Percona-Server(mysql衍生版)的安装
4小时前

  安装包:

  下载地址:http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-5.5.18-23.0/binary/linux/i686/Percona-Server-5.5.18-rel23.0-203.Linux.i686.tar.gz

  命令步骤:

  shell> groupadd mysql

  shell> useradd -r -g mysql mysql

  shell> cd /usr/local

  shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz

  shell> ln -s full-path-to-mysql-VERSION-OS mysql

  shell> cd mysql

  shell> chown -R mysql .

  shell> chgrp -R mysql .

  shell> scripts/mysql_install_db --user=mysql

  注:上一步,如发现如下错误提示,则说明系统缺少依存库:

  /usr/local/mysql/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

  只需命令:apt-get install libaio1 libaio-dev 安装libaio.so扩展后再继续。。。

  shell> chown -R root .

  shell> chown -R mysql data

  # Next command is optional

  shell> cp support-files/my-medium.cnf /etc/my.cnf

  shell> bin/mysqld_safe --user=mysql &

  # Next command is optional

  shell> cp support-files/mysql.server /etc/init.d/mysql.server

  ./bin/mysqladmin -u root password 'new-password'



原文地址:http://user.qzone.qq.com/89907749/blog/1326183011

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/90618/viewspace-715107/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-06-10

  • 博文量
    790
  • 访问量
    2098033