mycli icon indicating copy to clipboard operation
mycli copied to clipboard

The command to manipulate permissions does not work, but the mysql default client does

Open ztoiax opened this issue 4 years ago • 1 comments

from mycli client

mysql root@localhost:(none)> SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user;
(1142, "SELECT command denied to user 'root'@'localhost' for table 'user'")

ztoiax avatar Oct 24 '20 09:10 ztoiax

Hi!

That's very interesting! But I cannot duplicate the issue:

$ mycli --host localhost --port 3306 --user root
Password:
mysql root@localhost:(none)> SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user;
+---------------------------------------+
| query                                 |
|---------------------------------------|
| User: 'mysql.infoschema'@'localhost'; |
| User: 'mysql.session'@'localhost';    |
| User: 'mysql.sys'@'localhost';        |
| User: 'root'@'localhost';             |
+---------------------------------------+

rolandwalker avatar Jan 08 '21 14:01 rolandwalker