简体   繁体   English

执行(SET GLOBAL innodb_file_format = barracuda)在命令中不起作用

[英]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.

相关问题 Mysql全局变量'innodb_file_format'值在主服务器和从服务器上有所不同 - Mysql Global variable 'innodb_file_format' value differs in master and slave innodb梭子鱼文件格式与希捷之间的关系 - relation between innodb barracuda file format and seagate MySQL 'innodb_file_format' 变量不存在 - MySQL 'innodb_file_format' variable doesn't exist 南迁移错误,InnoDB:ROW_FORMAT = DYNAMIC需要innodb_file_format>羚羊 - South migrate error, InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_format > Antelope MySQL 完整 Unicode 支持问题:变量“innodb_file_format”是只读变量(MOODLE 3.10.1 安装) - MySQL full Unicode support issue : Variable 'innodb_file_format' is a read only variable ( MOODLE 3.10.1 Installation) 更改MySQL innodb_file_format和large_prefix是否会对其他网站造成任何问题? - Will changing MySQL innodb_file_format and large_prefix cause any issues for other websites? 如何使用梭子鱼文件格式创建表 - How to create a table using the Barracuda file format xtrabackup(innobackupex)是否可以与innodb_file_per_table(Barracuda)一起正常使用? - Does xtrabackup(innobackupex) works correctly with innodb_file_per_table (Barracuda)? Amazon RDS无法执行SET GLOBAL命令 - Amazon RDS unable to execute SET GLOBAL command MySQL - 梭子鱼文件格式和行压缩以避免 ERROR 1118 Row Size Too Large - MySQL - Barracuda file format & row compression to avoid ERROR 1118 Row Size Too Large
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM