当前位置:网站首页>Upgrade MySQL 5.6 to 8.0 on Windows
Upgrade MySQL 5.6 to 8.0 on Windows
2022-07-22 17:03:00 【Jedy junior five】
Please back up the source data of the database before starting !!!
Please back up the source data of the database before starting !!!
Please back up the source data of the database before starting !!!
One 、 download mysql 8.0 My bag
Offline installation is recommended to download zip Compressed package ( decompression , Use the administrator command line to configure )
Official website address : https://dev.mysql.com/downloads/mysql/Use the installation package ( Double click installation , Select the component you want , Download and install automatically , To configure )
Official website address : https://dev.mysql.com/downloads/installer/
Two 、zip Configure a new database after decompression
- Open the management mode cmd perhaps powershell
mysqld --initialize-insecure --user=root
- Wait for execution to complete , It will take a while
establish data Files such as folders - Create installation service
mysqld install
- Start the service
or(cmd Can be used directly in sc, powershell We need to use sc.exe)net start mysql
sc.exe start mysql
- root Administrator login ( The default password is empty )
mysql -u root
3、 ... and 、zip The way is from 5.6 To upgrade to 8.0
This method requires two zip package , One hour 5.7 Intermediate version zip package , A target version 8.0 Of zip package .
as a result of : By practice , 8.0 Version does not support from below 5.7 Version of mysql Upgrade directly to 8.0.
1. It is recommended that the following commands be directly passed through the administrator command line /powershell perform
2. Suppose your database starts as a service , And the service name is mysql
1. First step
from 5.6 To upgrade to 5.7:
1) stop it mysql service mysqladmin -uroot -p shutdown
or net stop mysql
or sc stop mysql
or Manually shut down
2) decompression 5.7 Of zip Package to source 5.6 The directory entry completely covers
3) start-up mysql service
4) perform mysql_upgrade -uroot
perform 5.7 Upgrade program for
If root The user has a password , You need to add -p
Parameters
5) If there is no error, start from 5.6 To 5.7 Upgrade Complete
2. The second step
from 5.7 Version upgrade to 8.0, Upgrade documents on the official website
1) Close the service mysqladmin -uroot -p shutdown
or net stop mysql
or sc stop mysql
or Manually shut down
2) decompression 8.0 Before decompressing and overwriting the compressed package 5.7 All files for
3) Start the service
4) Wait for the start to complete
8.0.16 Later versions are in the process of starting the service , It will automatically upgrade and update relevant data ;
otherwise You need to perform mysql_upgrade
5) If it starts normally , Then the upgrade is complete ; If there is no reference to relevant err Error message in file , Adjustment .
Four 、 Record of problems in the process
authentication plugin caching_sha2_password
Because from 8.0 Then the password encryption rules changed (mysql_native_password
->caching_sha2_password
)
Use the original password :alter user [email protected] identified with mysql_native_password by "root";
Unsupported redo log format (0). The redo log was created before MySQL 5.7.9
Cannot upgrade server earlier than 5.7 to 8.0
These two questions , It can be solved through a solution :
Because my old version is 5.6 Not directly from 5.6 Update to 8.0, So according to the prompt , take 5.6 Update the version to 5.7 edition , After that 5.7 Update to 8.0 that will do .Appoint my.ini Address time
At this time, you should pay attention to the compatibility of configuration items , In case of incompatible configuration items , This will cause the service to fail to start ;
Error messages can be found in bin In the directory mysqld Wrong err File log , Make relevant modifications according to the specified error information , Generally, it is directly commented out .
边栏推荐
- 还有人不会这些数据分析小案例吗?一招教你招聘数据可视化~
- High number_ Chapter 3 multiple integration
- UE4 合并静态网格体
- UE4 将画刷制作的物体合并成一个整体
- Codeforce D2. RGB substring (Hard version) Sliding Window
- Hande enterprise PAAS platform hzero will soon be heavily open source!
- codeforce D2. RGB Substring (hard version) 滑动窗口
- Hande enterprise digital PAAS platform hzero version 1.9.0 was officially released!
- oracle存储过程参数理解
- lvs看这篇就够了
猜你喜欢
汉得集成平台 集星獭 1.4.0 版本正式发布!
UE4 将蓝图写在Actor类里面 实现复用
shell(一)(更新中)
SAP wper (POS interface monitor) idco posting voucher ALV Report
UE4 设置夜晚(根据DirectionalLight方向更新SkySphere)
UE4 设置碰撞体
【网页性能优化】-—— 关于图片懒加载
When the win10 system is turned on, the response is slower than usual. How to solve it by turning around and waiting for 1 minute?
Large file slice upload and breakpoint continuation
Grasp the development trend of robot education towards AI intelligence
随机推荐
HIAM细粒度统一授权管理助力企业实现系统权限精细化管控
数字化路径与实践思考
Understand recursion and iteration
[MySQL] SQL tuning practice teaching
【Redis】分布式场景下Redis高可用部署方案
numpy.around
修复版动态视频壁纸微信小程序源码下载,支持多种类型流量主收益
High number_ Chapter 3 multiple integration
tf.compat
MySQL query plan key_ How to calculate len
Analyzing and optimizing robot course system and teaching strategy
Look at the steam education mode integrating mathematics teaching
UE4 修改默认缓存路径
Contract awarding and use of NPM private server
Sort -- insert sort and Hill sort in sort
Left ear mouse: developers in the cloud native era should have these five capabilities
UE4 合并静态网格体
Concis组件库 | 暗黑模式设计
tf.random_normal_initializer
AT4163 [ARC099D] Eating Symbols Hard