您的位置:首页 > 数据库 > MySQL

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: