mysql 2014 error (2014) Commands out of sync; You can't run this command now命令不同步错误解决
2007-12-10 21:26
609 查看
今天一个mysql 2014错误折磨了我好长时间。
网上狂搜一通,没有解决方法。在我的问题解决之后发现这个是函数使用造成的,不属于mysql的bug
找到一篇文章,很有帮助
例如,如果你正使用mysql_use_result(),并打算在调用mysql_free_result()之前执行新查询,就会出现该问题。
如果你试图执行两次查询,但并未在两次查询之间调用mysql_use_result()或mysql_store_result(),也会出现该问题。
总结我的问题,
在存在select的语句中,如"select * from……","select func_xxx()"需要使用mysql_store_result()或mysql_use_result
网上狂搜一通,没有解决方法。在我的问题解决之后发现这个是函数使用造成的,不属于mysql的bug
找到一篇文章,很有帮助
命令不同步
如果遇到“命令不同步”错误,将无法在你的客户端代码中运行该命令,你正在以错误顺序调用客户端函数。例如,如果你正使用mysql_use_result(),并打算在调用mysql_free_result()之前执行新查询,就会出现该问题。
如果你试图执行两次查询,但并未在两次查询之间调用mysql_use_result()或mysql_store_result(),也会出现该问题。
总结我的问题,
在存在select的语句中,如"select * from……","select func_xxx()"需要使用mysql_store_result()或mysql_use_result
相关文章推荐
- 解决error:2014 Commands out of sync; you can't run this command now
- 解决error:2014 Commands out of sync; you can't run this command now
- 解决error:2014 Commands out of sync; you can't run this command now
- 解决error:2014 Commands out of sync; you can't run this command now
- C++ Mysql调用 错误:2014 :Commands out of sync; you can't run this command now
- 解决error:2014 Commands out of sync; you can't run this command now
- python mysql 2014 Commands out of sync; you can't run this command now
- Mysql::Error: Commands out of sync; you can't run this command now: SHOW TABLES解决方案
- error:2014 Commands out of sync; you can't run this command now
- python mysql 2014 Commands out of sync; you can't run this command now
- _mysql_exceptions.ProgrammingError:(2014, "commands out of sync; you can't run this command now")
- 解决mysql error:2014 Commands out of sync; you can't run this command now
- ERROR (ProgrammingError) (2014, "Commands out of sync; you can't run this command now")
- LR错误: Commands out of sync; you can't run this command now 解决方法
- PHP 开发中遇到的 Commands out of sync; you cant't run this command now 错误 解决方法
- Commands out of sync; you can't run this command now错误
- error:2014 Commands out of sync; you can't run this command now
- PHP执行MYSQL存储过程报错:Commands out of sync; you can't run this command now 问题的解决
- php用mysql_query()调用存储过程后无法再执行sql报错:commands out of sync you can't run this command now
- mysql 出现 Commands out of sync; you can't run this command now