magento2 拿到sql后,导入发现错误:Constraint "quote_to_store" references table that does not exist.
2017-06-29 10:20
1931 查看
我用的是magento2和mysql5.7,导入数据库后,打开页面的时候遇到了上面错误,以前都没有遇到,后来才猜想是mysql5.7的bug,尼玛开启了严格模式,这个就是个坑,不知道的话就掉进去了,
如果这解决不了,找到sql里面和quote相关的所有表格,想方法安装到本项目数据库
设置sql_mode也可以参考
http://www.cnblogs.com/anstoner/p/6414440.html
将想要去掉的限制替换了 ‘
mysql> SET GLOBAL sql_mode = ''; mysql> commit; mysql> flush privileges; mysql> exit;
如果这解决不了,找到sql里面和quote相关的所有表格,想方法安装到本项目数据库
设置sql_mode也可以参考
http://www.cnblogs.com/anstoner/p/6414440.html
SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
将想要去掉的限制替换了 ‘
ONLY_FULL_GROUP_BY’ 也可以,比如说NO_ZERO_DATE,NO_ZERO_IN_DATE
相关文章推荐
- Error: An attempt was made to reference a token that does not exist.
- 奇怪的VB ADODB错误 "sql server does not exist or access denied"
- 如何解决sql server2005的“不允许远程连接”错误.(how to resolve the error: "SQL Server does not allow remote connections" for SQL Server2005)
- 错误 the type "xxxx" is defined in an assembly that is not refernced.You must add a reference to assem
- 执行config文件时,config.log中报错xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change
- VS2010 转换website项目后 发布报错 - The target "PipelinePreDeployCopyAllFilesToOneFolder" does not exist in the project.
- 错误路径Eclipse下启动tomcat报错:/bin/bootstrap.jar which is referenced by the classpath, does not exist.
- how to solve "java.sql.Timestamp does not have a no-arg default constructor" ? .
- Error message when you try to save a table in SQL Server 2008: "Saving changes is not permitted"
- 关于PostgreSQL数据库的 ERROR: relation "tableName" does not exist
- 新浪微博安卓SDKexample,认证错误,Sorry, that page doesnot exist!
- [MacOS] xcrun: error: active developer path ("/Volumes/Xcode/Xcode6-Beta.app/Contents/Developer") does not exist, use xcode-select to change
- Visual Studio 2010 发布Web项目提示The target "PipelinePreDeployCopyAllFilesToOneFolder" does not exist in the project.解决方法
- ibatis 的 "This SQL map does not contain a MappedStatement"的错误
- 尝试通过使用 TCP/IP 套接字连接到群集中的 SQL Server 命名实例时收到“SQL Server does not exist or access denied”(SQL Server 不存在,或者访问被拒绝)错误消息
- WCF分布式开发常见错误(3):客户端调用服务出错:You have tried to create a channel to a service that does not support .Net Framing
- Why do I get the error "The target GatherAllFilesToPublish does not exist"?
- ORACLE DBCA 静默安装数据库报"template does not exist" 错误
- Linq连接数据库发生错误,提示"...SQL Server does not allow remote connections..."
- Potential causes of the "SQL Server does not exist or access denied" error message