我正在尝试在python3中执行以下脚本,该脚本假设连接到数据库,获取表列表,然后返回describe语句,但整个过程中python似乎将更改为'‘,并返回以下错误: for result in cursor.execute(describe, smthn):
File "/usr/local/lib/python
在执行来自虚拟服务器的任何查询时,我都面临着这个问题。我使用aws rds,可以通过mysql工作台进行连接,也可以执行查询,但它不适用于python脚本。because of many connection errors; unblock with 'mysqladmin flush-hosts'")
当我运行这个命令mysqladmin flush-hosts时,
我已经写了一条指令,使用2个id从数据库中获取频率,如下所示:cursor.execute("select freq from matrix_brown where a_id in (%s) and b_id in (%s)",b_item_id,b_after_id)但是我得到了这个错误:
cursor.execute("select freq from matrix_brown where a_id in (%s) and b_id in (%s)",b_befo