日期:2014-05-16 浏览次数:20698 次
?
安装包:
下载地址: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
|