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

season0891發表於2012-01-19
inux下Percona-Server(mysql衍生版)的安裝
4小時前

  安裝包:

  下載地址:

  命令步驟:

  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部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-715107/,如需轉載,請註明出處,否則將追究法律責任。

相關文章