Mysql之Percona(1)版本5.6.10二进制tar方式安装手册(原) .

  

     

      安装包:

  下载地址: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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值