设为首页 加入收藏

TOP

MySQL Study之--Percona Server 5.5升级5.6(七)
2015-12-15 22:18:19 来源: 作者: 【 】 浏览:54
Tags:MySQL Study --Percona Server 5.5 升级 5.6
R SONAME 'libmurmur_udf.so'"


See http://www.percona.com/doc/percona-server/5.6/management/udf_percona_toolkit.html for more details


------------至此,Percona Server 5.6安装成功 !


四、将数据import到server 5.6


1、启动mysql server


[root@cent65 percona-56]# service mysql start
Starting MySQL (Percona Server).[? OK? ]
[root@cent65 percona-56]# netstat -an|grep :3306
tcp? ? ? ? 0? ? ? 0 :::3306? ? ? ? ? ? ? ? ? ? :::*? ? ? ? ? ? ? ? ? ? ? ? LISTEN?


2、导入用户权限表
[root@cent65 percona-56]# mysql -u root -p Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)


[root@cent65 percona-56]# mysqladmin -u root password "oracle"
Warning: Using a password on the command line interface can be insecure.


[root@cent65 percona-56]# mysql -u root -p Enter password:


3、导入备份数据
[root@cent65 percona-56]# mysql -uroot -p -e "SET GLOBAL max_allowed_packet=1024*1024*1024"
Enter password:
[root@cent65 percona-56]# mysql -uroot -p --max-allowed-packet=1G < /home/mysql/full-data-dump.sql
Enter password:
[root@cent65 percona-56]#


5、连接server,验证数据
[root@cent65 percona-56]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.? Commands end with ; or \g.
Your MySQL connection id is 6
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> show databases;
+--------------------+
| Database? ? ? ? ? |
+--------------------+
| information_schema |
| mysql? ? ? ? ? ? ? |
| performance_schema |
| prod? ? ? ? ? ? ? |
| test? ? ? ? ? ? ? |
+--------------------+
5 rows in set (0.00 sec)


mysql> use prod;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+----------------+
| Tables_in_prod |
+----------------+
| emp? ? ? ? ? ? |
+----------------+
1 row in set (0.00 sec)


查看表信息:
mysql> select * from emp;
+------+-------+
| id? | name? |
+------+-------+
|? 10 | tom? |
|? 20 | jerry |
|? 30 | rose? |
+------+-------+
3 rows in set (0.00 sec)


---------数据库可以正常访问,至此升级结束!


? ? 此时, 所有的表都在MySQL 5.6中重建及重新加载完成,所以所有的二进制文件对MySQL 5.6可用. 同时也你完成了最干净/最稳定的升级过程,你可以恢复你的应用- 这个升级过程和valina MySQL与Percona Server的升级过程是一样的.甚至你可以把Oracle MySQL升级到Percona Server. 比如: 把Oracle MySQL 5.5升级到Percona Server 5.6. 再次强调: MySQL的升级过程和Percona Server的升级过程是一样的,只需要将Percona Server 替换成Oracle MySQL即可。


Percona Server 只包含 MySQL 的服务器版,并没有提供相应对 MySQL 的 Connector 和 GUI 工具进行改进。


Percona Server 使用了一些 google-mysql-tools, Proven Scaling, Open Query 对 MySQL 进行改造。


Percona Server 使用了一些 google-mysql-tools, Proven Scaling, Open Query 对 MySQL 进行改造。


首页 上一页 4 5 6 7 下一页 尾页 7/7/7
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇让MySQL 5.6支持Emoji表情 下一篇MySQL 增量备份的脚本 (innoback..

评论

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