当前位置:网站首页>mysql 5.1升级到5.69
mysql 5.1升级到5.69
2022-04-23 14:06:00 【franket】
报错表明schema的结构有问题
但是尝试登录已经可以正常登录
并且发现已经是新的版本了
[root@upgrade-slave ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.27-75.0-log Percona Server (GPL), Release 75.0, Revision 8bb53b6
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>
解决schema的结构错误的方法是进行upgrade
进行mysql_upgrade
必须是实例正在运行的状态下使用upgrade
[root@upgrade-slave ~]# time mysql_upgrade -u root -p
Enter password:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/lib/mysql/mysql.sock'
Warning: Using a password on the command line interface can be insecure.
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/lib/mysql/mysql.sock'
Warning: Using a password on the command line interface can be insecure.
mysql.columns_priv OK
mysql.db OK
mysql.event OK
mysql.func OK
mysql.general_log OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
mysql.ndb_binlog_index OK
mysql.plugin OK
mysql.proc OK
mysql.procs_priv OK
mysql.servers OK
mysql.slow_log OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
Running 'mysql_fix_privilege_tables'...
Warning: Using a password on the command line interface can be insecure.
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/lib/mysql/mysql.sock'
Warning: Using a password on the command line interface can be insecure.
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/lib/mysql/mysql.sock'
Warning: Using a password on the command line interface can be insecure.
huodongdb.delivered_emails OK
huodongdb.prepared_emails OK
testdb.space_diaries OK
...
...
feeddb.ux_order_stats OK
feeddb.ux_product_stats OK
feeddb.weight_changes OK
test.checksum OK
OK
real 2m4.418s
user 0m0.049s
sys 0m0.038s
[root@upgrade-slave ~]#
修复完成
版权声明
本文为[franket]所创,转载请带上原文链接,感谢
https://cloud.tencent.com/developer/article/1986104
边栏推荐
- 微信小程序与低功耗蓝牙通信-接受硬件端发送来的数据(四)
- 封装logging模块
- findstr不是内部或外部命令解决方法
- Wechat applet communicates with low-power Bluetooth - receives data sent by hardware (IV)
- Windos中安装labellmg教程
- HyperBDR云容灾V3.2.1版本发布|支持更多云平台,新增监控告警功能
- 关于NodeJS中JSON5的相关配置和使用
- Intégration de Clusters CDH Phoenix basée sur la gestion cm
- 在MAC上安装mysql
- Detailed tutorial on the use of setinterval timing function of wechat applet
猜你喜欢
Some good articles on pthread multithreading
PATH环境变量
微信小程序通过低功耗蓝牙设备进行定位及测距(二)
How QT designer adds resource files
Pycharm连接远程服务器并实现远程调试
Wechat applet positioning and ranging through low-power Bluetooth device (2)
HyperMotion云迁移助力中国联通,青云完成某央企上云项目,加速该集团核心业务系统上云进程
Call wechat customer service applet
微信小程序进行蓝牙初始化、搜索附近蓝牙设备及连接指定蓝牙(一)
Wechat applet initializes Bluetooth, searches nearby Bluetooth devices and connects designated Bluetooth (I)
随机推荐
Three point positioning based on ibeacons (wechat applet)
某政务云项目业务系统迁移调研实践
微信小程序与低功耗蓝牙通信-往硬件端发送数据(三)
多重继承虚基类习题
理解虚基类、虚函数与纯虚函数的概念(转)
修改ddt生成的测试用例名称
基于CM管理的CDH集群集成Phoenix
Multiple inheritance virtual base exercises
星界边境文本自动翻译机(高级版)使用说明
Switch usage (wechat applet)
JDBC详解
可否把模板的头文件和源文件分开编译
Jacob print word
DDT+Excel进行接口测试
Can global variables be defined in header files
VMware 15pro mounts the hard disk of the real computer in the deepin system
容灾有疑问?点这里
使用DialogFragment的一些感受及防踩坑经验(getActivity、getDialog为空,cancelable无效等)
Subscription number development of wechat applet (message push)
Wechat applet positioning and ranging through low-power Bluetooth device (2)