mysql中执行show命令的时候,提示以下信息:
mysql> show variables like 'datadir'\G; *************************** 1. row *************************** Variable_name: datadir Value: /var/mysql/data/ 1 row in set (0.00 sec) ERROR: No query specified
解决方法:取消最后的分号
mysql> show variables like 'datadir'\G *************************** 1. row *************************** Variable_name: datadir Value: /var/mysql/data/ 1 row in set (0.00 sec) mysql>