mysql5.1怎样升级到5.6

发布时间:2021-11-16 14:29:41 作者:柒染
来源:亿速云 阅读:214

本篇文章为大家展示了mysql5.1怎样升级到5.6,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。

卸载原有mysql版本

rpm -qa | grep -i mysql | xargs rpm -ev --nodeps

去官网下载最新的社区版mysql5.6版本

官网地址:www.mysql.com

mysql5.1怎样升级到5.6

这个tar包里含有许多与MYSQL相关的安装包,需要哪个安装哪个,解压之后的包

mysql5.1怎样升级到5.6

安装mysql的服务器端和客户端

rpm -ivh mysql-server-5.6.35-1.el6.x86-64.rpm
rpm -ivh mysql-client-5.6.35-1.el6.x86_64.rpm

安装完之后,将/var/lib/myql目录下的ib*文件重命名或拷贝出来


升级数据库

[root@msl3 ~]# mysql_upgrade --protocol=tcp -P3306 -p

Enter password:

Looking for 'mysql' as: mysql

Looking for 'mysqlcheck' as: mysqlcheck

Running 'mysqlcheck' with connection arguments: '--protocol=tcp' '--port=3306'

Warning: Using a password on the command line interface can be insecure.

Running 'mysqlcheck' with connection arguments: '--protocol=tcp' '--port=3306'

Warning: Using a password on the command line interface can be insecure.

mysql.columns_priv                                 

mysql.db                                           

mysql.event                                      

mysql.func                                        

mysql.general_log                             

mysql.help_category                                

mysql.help_keyword                                 

mysql.help_relation                                

mysql.help_topic                                  

mysql.host                                        

mysql.ndb_binlog_index                             

mysql.plugin                                       

mysql.proc                                         

mysql.procs_priv                                  

mysql.servers                                    

mysql.slow_log                                     

mysql.tables_priv                                  

mysql.time_zone                                   

mysql.time_zone_leap_second                        

mysql.time_zone_name                               

mysql.time_zone_transition                         

mysql.time_zone_transition_type                  

mysql.user                                         

Running 'mysql_fix_privilege_tables'...

Warning: Using a password on the command line interface can be insecure.

Running 'mysqlcheck' with connection arguments: '--protocol=tcp' '--port=3306'

Warning: Using a password on the command line interface can be insecure.

Running 'mysqlcheck' with connection arguments: '--protocol=tcp' '--port=3306'

Warning: Using a password on the command line interface can be insecure.

OK

启动mysql进程
mysqld_safe &

上述内容就是mysql5.1怎样升级到5.6,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注亿速云行业资讯频道。

推荐阅读:
  1. Linux/Centos mysql5.1升级到5.6(rpm安装的mysql升级)
  2. 安装MYSQL 5.6

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

mysql

上一篇:怎么把非springboot项目集成eureka

下一篇:Jersey是什么

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》