引言
平台:WIN10
原始版本:5.7.31.log
目标版本:8.0.26
过程
- 设置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
遇到的问题
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)
sql
set global log_bin_trust_function_creators=TRUE;
```
正在运行中,如果有其它问题,继续写,如果停更了,那就说明成功了。



评论 0
还没有评论,来说点什么吧。