mysql: ERROR 1064 (42000): You have an error in your SQL syntax;

Solution Verified - Updated -

Issue

mysql> SHOW VARIABLES LIKE "%version%";
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 '"%version%"' at line 1

Environment

  • Red Hat Enterprise Linux, All versions

  • MySqL 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content