我的 root 用户具有以下权限:
mysql> SHOW GRANTS FOR root@'%';
+--------------------------------------------------------------------------------------------------------------+
| Grants for root@% |
+--------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY PASSWORD '*81F5E21E35407D884A6CD4A731AEBFB6AF209E1B' |
| GRANT ALL PRIVILEGES ON `bedrock`.* TO 'root'@'%' |
+--------------------------------------------------------------------------------------------------------------+
当我尝试执行以下命令时,我收到以下错误消息:
mysqladmin root -pSOMEPASSWORD
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
虽然我能够正常执行 mysql 命令,但我无法对 mysqld 执行此操作。有什么问题?谢谢。