我正在尝试执行我的PHP代码,它通过mysqli调用两个MySQL查询,并得到错误消息"Commands out of sync;you‘t run this command now“。$con) {
echo "Can't connect to MySQL Server. Errorcode: %s\n".但是,如果我只是选择*,而不是尝试基于LIKE子句进行限制,我仍然会得到命令不同步错误。
/export.py", line 55, in <module> File "/usr/local/lib/python2.7/dist-packages/MySQL_python1.2.3-py2.7-linux-x86_64.egg/MySQLdb/connections.py", line 249, in __exit__ _mysql<
我有一个从Python (包装在Django中)执行的MySQL存储过程。当我尝试执行第二条语句时,收到错误消息"commands out of sync;you‘t run this command now“。在这一点上我不能提交事务。当我调用一个过程时,这只是一个问题。cursor.callproc('my_mysql_procedure', [some_id,]) for r in result: