![](/img/trans.png)
[英]Mysql Global variable 'innodb_file_format' value differs in master and slave
[英]Execute (SET GLOBAL innodb_file_format = barracuda) is not working in command
我只是想使用命令行更新我的unicode
數據庫上的 unicode。
這是我想執行的查詢:
例如 1
mysql> SET GLOBAL innodb_file_format = barracuda;
例如 2
mysql> SET GLOBAL innodb_file_per_table = 1;
例如 3
mysql> SET GLOBAL innodb_large_prefix = 'on';
但不幸的是,我收到了這個錯誤響應。
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
我不熟悉這個錯誤。 有人可以幫我解決這個問題嗎? 還是有其他方法可以實現我的目標? 順便說一句,我使用的是MAC OS,我當前的MySQL版本是(5.6.41-84.1)
謝謝你。
要修復錯誤,您需要SUPER權限。 SUPER 它是適用於所有數據庫的全局權限,應按如下方式授予:
GRANT SUPER ON *.* TO `user`@`localhost` IDENTIFIED BY 'your_password';
注意。 我認為您使用的用戶是user@localhost
,更改為您正在使用的用戶。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.