Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导入SQL文件出现错误 #4

Closed
puchihhh opened this issue Sep 18, 2022 · 5 comments
Closed

导入SQL文件出现错误 #4

puchihhh opened this issue Sep 18, 2022 · 5 comments

Comments

@puchihhh
Copy link

用newbee_mall_db_包含秒杀and优惠卷.sql在Navicat运行只导出"tb_newbee_mall_admin_user"和"tb_newbee_mall_carousel"两张表,
选择出错时停止运行时如图
image

@wayn111
Copy link
Owner

wayn111 commented Sep 18, 2022

你是导入sql脚本报错?Mysql最低得5.7+版本

@puchihhh
Copy link
Author

确实版本低了, 但升级后导入时还是报错. 又按照网上的方法勾选"在每个运行中运行多个查询"还是报错.
如果选出错就停止会卡在这里
image
如果选出错也继续还是有17处错误
image
能导出的表有10张
image

@wayn111
Copy link
Owner

wayn111 commented Sep 19, 2022

image
你是mysql5.7+吗,导入成功后有13张表
image

@wayn111
Copy link
Owner

wayn111 commented Sep 19, 2022

可以直接把报错的sql语句再navicat里执行,看下你是为什么报错

@puchihhh
Copy link
Author

搞好了, 还是mysql版本不兼容的问题, 把所有的utf8mb4_0900_ai_ci替换为utf8_general_ci,以及所有的utf8mb4替换为utf8再执行就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants