帮我看看这个怎么处理:mysql show variables like wait_timeout;ERROR 1064 42000 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
这个错误是由于在MySQL的命令行中,使用了不正确的语法来查询变量。正确的语法应该是使用双引号或不使用引号来查询变量。
以下是两种正确的语法示例:
- 使用双引号:
mysql> show variables like "wait_timeout";
- 不使用引号:
mysql> show variables like wait_timeout;
请根据你的需求选择其中一种语法来查询变量。
原文地址: https://www.cveoy.top/t/topic/jf63 著作权归作者所有。请勿转载和采集!