QQ 1640076782

2013年11月29日

数据库错误所遇到的mysql error

Filed under: phper — 标签:, — lijie @ 3:33 上午

这里简单的来说下2个mysql error,他们所产生的的原因,以及解决方法。

1.the error is could not connect to host.the error is soap_error:parsing WSDL:couldn’t load from

‘https:/awards.googke.com/api/adwards…’(该错误是我采集adwards api数据时出现的)

原因:程序执行的平率太快

解决方法:sleep(1) 延缓1秒执行

2.mysql error:1064.you have an error in your sql syntax check the manual that corresponds to your mysql

server version for the right syntax to use near …

原因:有可能是sql语句中空格,转义字符,单词错误。。。

解决方法:复制sql语句到数据库中运行,看具体哪里有错误

如果你有外贸企业网站建站需求,欢迎随时联系我们

QQ客服:415682727

电话:020-39907297

MSN:[email protected]