mysqlshowgrantsfor'root'@'localhost'; --------------------------------------------------------------------- |grantsforroot@localhost| --------------------------------------------------------------------- |grantallprivilegeson*.*to'root'@'l
mysql>show grants for'root'@'localhost';
+---------------------------------------------------------------------+
|grants forroot@localhost |
+---------------------------------------------------------------------+
|grantallprivileges on*.*to'root'@'localhost'withgrantoption