gpt4 book ai didi

mysql给出不推荐使用的警告

转载 作者:IT王子 更新时间:2023-10-29 00:37:17 24 4
gpt4 key购买 nike

自从更新 mysql 以来,我一直收到警告(它淹没了我的日志)。它说,

 1287, "'@@tx_isolation' is deprecated and will be removed in a future release. Please use '@@transaction_isolation' instead"

mysql下

mysql> show variables like "tx_isolation";
+---------------+-----------------+
| Variable_name | Value |
+---------------+-----------------+
| tx_isolation | REPEATABLE-READ |
+---------------+-----------------+
1 row in set (0.00 sec)

我也有警告提示的新变量..

mysql> show variables like "transaction_isolation";
+-----------------------+-----------------+
| Variable_name | Value |
+-----------------------+-----------------+
| transaction_isolation | REPEATABLE-READ |
+-----------------------+-----------------+
1 row in set (0.00 sec

我知道变量 w 不再使用。我希望它消失,但对我的查询持谨慎态度。是删除警告变量的正确程序。如果有,怎么做?

同时检查 my.cnf,我没有看到任何变量的提及。

最佳答案

The problemresolved in SQLAlchemy , released as a part of version 1.2.0 , backported to 1.1.15它于 2017-11-03 推出。通过将 SQLAlchemy 升级到 1.1.15,警告消失。

pip install sqlalchemy>=1.1.15

关于mysql给出不推荐使用的警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47026599/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com