Loading... # 引言 平台:WIN10 原始版本:5.7.31.log 目标版本:8.0.26 # 过程 1. 设置8版本的my.ini如下 ```properties [mysqld] basedir=D:\Software\mysql-8.0.26-winx64 datadir=F:\Databases\Data8 port=3308 ``` 2. 安装8版本 `mysqld --initialize --console` `mysqldmysqld.exe --install mysqld --defaults-file="F:\Databases\my.ini"` 3. 运行mysql8 `mysqld --console` 有问题解决问题,没问题临时启动也无妨 4. mysql5 备份数据 ```bash mysqldump -uroot -p****** --databases -R challenges db_pms godeyes hospital myself pentest phpmyadmin practise security sgk typecho web_database_study web_pentest wooyun > f:\backdb.sql ``` 5. 在8的bin目录执行 ```bash mysql -uroot -p****** -P3308 -h127.0.0.1 --default-character-set=utf8 -f < f:\backdb.sql ``` # 遇到的问题 --- <div class="tip inlineBlock error"> ``` ```bash mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 1418 (HY000) at line 4891: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) ``` 在8的客户端执行 ```sql set global log_bin_trust_function_creators=TRUE; ``` </div> --- <div class="tip inlineBlock share"> 正在运行中,如果有其它问题,继续写,如果停更了,那就说明成功了。 </div> ![image.png](https://www.zunmx.top/usr/uploads/2021/10/1061895902.png) © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 1 如果觉得我的文章对你有用,请随意赞赏