设为首页 加入收藏

TOP

MySQLStudy之--PerconaServer版本(八)
2015-11-21 01:45:42 来源: 作者: 【 】 浏览:10
Tags:MySQLStudy --PerconaServer 版本
ys /usr/share/percona-server/spanish /usr/share/percona-server/spanish/errmsg.sys /usr/share/percona-server/swedish /usr/share/percona-server/swedish/errmsg.sys /usr/share/percona-server/ukrainian /usr/share/percona-server/ukrainian/errmsg.sys
二、配置Percona-Server
[root@mysql2 soft]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[root@mysql2 soft]# vi /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
explicit_defaults_for_timestamp=true
innodb_buffer_pool_size = 128M
join_buffer_size = 128M
sort_buffer_size = 2M
read_rnd_buffer_size = 2M

启动mysql服务:
[root@mysql2 soft]# service mysql start
/usr/bin/my_print_defaults: /usr/lib/libcrypto.so.10: no version information available (required by /usr/bin/my_print_defaults)
Starting MySQL (Percona Server).....[ OK ]
[root@mysql2 soft]# netstat -an |grep :3306
tcp 0 0 :::3306 :::* LISTEN
修改root密码:
[root@mysql2 soft]# mysqladmin -u root password "oracle"
mysqladmin: /usr/lib/libcrypto.so.10: no version information available (required by mysqladmin)
mysqladmin: /usr/lib/libssl.so.10: no version information available (required by mysqladmin)
Warning: Using a password on the command line interface can be insecure.
连接数据库
[root@mysql2 soft]# mysql -u root -p
mysql: /usr/lib/libcrypto.so.10: no version information available (required by mysql)
mysql: /usr/lib/libssl.so.10: no version information available (required by mysql)
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.25-73.1 Percona Server (GPL), Release 73.1, Revision 07b797f
Copyright (c) 2009-2015 Percona LLC and/or its affiliates
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>


安装遇到的问题:
1、libssl.so.10和libcrypto.so.10 错误 [root@rh6 oracle]#rpm -vih Percona-Server-server-56-5.6.25-rel73.1.el6.x86_64.rpm
warning: Percona-Server-server-56-5.6.25-rel73.1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
Percona-Server-client-56 is needed by Percona-Server-server-56-5.6.25-rel73.1.el6.x86_64
Percona-Server-shared-56 is needed by Percona-Server-server-56-5.6.25-rel73.1.el6.x86_64
libcrypto.so.10(libcrypto.so.10)(64bit) is needed by Percona-Server-server-56-5.6.25-rel73.1.el6.x86_64
libssl.so.10(libssl.so.10)(64bit) is needed by Percona-Server-server-56-5.6.25-rel73.1.el6.x86_64

[root@rh6 oracle]#rpm -ivh Percona-Server-client-56-5.6.25-rel73.1.el6.x86_64.rpm
warning: Percona-Server-client-56-5.6.25-rel73.1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signatur
首页 上一页 5 6 7 8 9 10 下一页 尾页 8/10/10
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇MySQL学习笔记(1) 下一篇MySql常用命令--优化参数以及日常..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: