Access denied; you need (at least one of) the PROCESS privilege(s)



在帮一个朋友的数据库导出的时候遇到错误,如下:

点击(此处)折叠或打开

  1. [root@iZ252affh58Z ~]# innobackupex --defaults-file=/etc/my.cnf --host=10.51.xxx.xxx --user=xtrabk --password=xxxxxx --stream=tar /tmp | gzip > /mnt/backup/mysql_full/xtra_fullbak_2017-01-20.tar.gz
  2. 170120 18:21:48 innobackupex: Starting the backup operation

  3. IMPORTANT: Please check that the backup run completes successfully.
  4.            At the end of a successful backup run innobackupex
  5.            prints "completed OK!".

  6. 170120 18:21:48 version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;host=10.51.xxx.xxx;port=3306;mysql_socket=/mnt/mysql/mysql.sock' as 'xtrabk' (using password: YES).
  7. 170120 18:21:48 version_check Connected to MySQL server
  8. 170120 18:21:48 version_check Executing a version check against the server...
  9. 170120 18:21:51 version_check Done.
  10. 170120 18:21:51 Connecting to MySQL server host: 10.51.xxx.xxx, user: xtrabk, password: set, port: 3306, socket: /mnt/mysql/mysql.sock
  11. Using server version 5.7.12-log
  12. Error: failed to execute query
  13. SHOW ENGINE INNODB STATUS: Access denied; you need (at least one of) the PROCESS privilege(s) for th
 根据提示是缺少PROCESS权限,赋予后问题解决

grant process on *.* to xtrabk@'10.51.xxx.xxx';

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20893244/viewspace-2132811/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/20893244/viewspace-2132811/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
错误信息"1227 - Access denied; you need (at least one of) the PROCESS privilege(s) for this operation"表示当前用户缺少至少一个PROCESS权限,这是用来查看连接到数据库的用户的权限。除了root用户,其他用户只能看到自己的连接信息。 为了解决这个问题,你可以使用root账号给当前用户赋予PROCESS权限。具体的步骤如下: 1. 登录到MySQL数据库,使用root账号。 2. 执行以下命令,将PROCESS权限授予当前用户: ``` GRANT PROCESS ON *.* TO '数据库用户名'; ``` 请将'数据库用户名'替换为你要授予权限的用户用户名。 通过执行上述命令,你就可以为当前用户赋予PROCESS权限,从而解决"1227 - Access denied; you need (at least one of) the PROCESS privilege(s) for this operation"错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [解决mysql ERROR 1045 (28000)-- Access denied for user问题](https://download.csdn.net/download/weixin_38661650/12825816)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [1227- Access denied; you need (at least one of) the PROCESS privilege(s) for this operation](https://blog.csdn.net/LG_15011399296/article/details/125482442)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [【已解决】1227- Access denied... you need (at least one of) the PROCESS privilege(s) for this operation](https://blog.csdn.net/lh155136/article/details/117219380)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值