[英]Execute (SET GLOBAL innodb_file_format = barracuda) is not working in command
I'm just trying to update the unicode
on my MySQL database using the command line.我只是想使用命令行更新我的
unicode
数据库上的 unicode。
Here is the query that I suppose to execute:这是我想执行的查询:
eg 1例如 1
mysql> SET GLOBAL innodb_file_format = barracuda;
eg 2例如 2
mysql> SET GLOBAL innodb_file_per_table = 1;
eg 3例如 3
mysql> SET GLOBAL innodb_large_prefix = 'on';
But unfortunately I've got this error response.但不幸的是,我收到了这个错误响应。
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 26540397
Current database: db_1234
ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privilege(s) for this operation
I'm not familiar with this error.我不熟悉这个错误。 Can someone please help me in order to resolve this issue?
有人可以帮我解决这个问题吗? Or is there another way that performs my objectives?
还是有其他方法可以实现我的目标? By the way, I'm using MAC OS, and my current MySQL version is (5.6.41-84.1)
顺便说一句,我使用的是MAC OS,我当前的MySQL版本是(5.6.41-84.1)
Thank you.谢谢你。
To fix the error you need the SUPER privilege.要修复错误,您需要SUPER权限。 SUPER it's a global permission which applies on all databases and should be grant as follows:
SUPER 它是适用于所有数据库的全局权限,应按如下方式授予:
GRANT SUPER ON *.* TO `user`@`localhost` IDENTIFIED BY 'your_password';
Note .注意。 I supposed the user you are using is
user@localhost
, change with the one you are using.我认为您使用的用户是
user@localhost
,更改为您正在使用的用户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.