Mysql之Percona(1)版本5.6.10二进制tar方式安装手册(原) .
2014-08-13 15:41
656 查看
安装包:
下载地址:http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-5.5.38-rel35.2-674.Linux.x86_64.tar.gz
安装目录 /usr/local/mysql ,首先将Percona-Server-5.5.38-rel35.2-674.Linux.x86_64.tar.gz 安装包上传到 /usr/local/mysql 下然后
一。命令步骤:
shell> groupadd mysql
shell> useradd -r -g mysql mysql
shell> cd /usr/local/mysql
shell>gunzip <Percona-Server-5.5.38-rel35.2-674.Linux.x86_64.tar.gz |tar xf -
shell>ln -s Percona-Server-5.5.38-rel35.2-674.Linux.x86_64 mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
注意1:删除软连接的命令 rm -rf 连接名称
注2:其它人出现上一步,如发现如下错误提示,则说明系统缺少依存库:
/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扩展后再继续。。。
# 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'
注意:3.自己在执行scripts/mysql_install_db --user=mysql 也出现错误。但是数据库可以正常启动,没有发现其它问题。错误信息如下
[root@erp75 mysql]# ./scripts/mysql_install_db --user=mysql
Installing MySQL system tables...
Error in my_thread_global_end(): 1 threads didn't exit
OK
Filling help tables...
Error in my_thread_global_end(): 1 threads didn't exit
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h erp75.etransfar.com password 'new-password'
Alternatively you can run:
./bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
测试启动成功(3306端口): netstat -anp|grep LISTEN
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl
Please report any problems at
https://bugs.launchpad.net/percona-server/+filebug
Percona recommends that all production deployments be protected with a support
contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
be eligible for hot fixes, and boost your team's productivity.
参考文档 :http://dev.mysql.com/doc/refman/5.1/zh/installing.html#installing-binary
相关文章推荐
- 最新版本Mysql 5.7.19三种安装方式手册
- Mysql之Percona(1)最新版本5.6.10手把手安装手册.txt
- LNMP 最新版本+YUM方式安装指南(CentOS5.5 + Nginx 1.0.x + MySQL 5.5.x + PHP 5.3.x)
- LNMP 最新版本+YUM方式安装指南(CentOS5.5 + Nginx 1.0.x + MySQL 5.5.x + PHP 5.3.x)
- 二进制包方式安装mysql 5.5.32
- MySQL-5.6.x二进制版本安装记录
- 安装mysql-cluster-gpl-7.2二进制版本 及 设置ndb集群
- Mac OS X 下 TAR.GZ 方式安装 MySQL
- Linux系统下以RPM方式安装mysql-5.7.9【5.7版本以后,启动mysqld服务首次登录需要密码,为root生成的随机密码在错误日志文件/var/log/mysqld.log】
- Mac OS X 下 TAR.GZ 方式安装 MySQL 5.7(转)
- Mac OS X 下 TAR.GZ 方式安装 MySQL 5.7+
- Mac OS X 下 TAR.GZ 方式安装 MySQL
- Mac OS X 下 TAR.GZ 方式安装 MySQL 5.7
- 腾讯 QQ for Linux 的安装及 tar.gz版本QQ 建立快捷方式
- Mac OS X 下 TAR.GZ 方式安装 MySQL
- 在 CentOS 7 中以命令行方式安装 MySQL 5.7.11 for Linux Generic 二进制版本
- Mac OS X 下 TAR.GZ 方式安装 MySQL
- Linux安装mysql衍生版本Percona-Server
- Mac OS X 下 TAR.GZ 方式安装 MySQL
- Mac OS X 下 TAR.GZ 方式安装 MySQL5.6