centreon@localhost 拒绝访问 mariadb

centreon@localhost 拒绝访问 mariadb

我正在尝试将 centreon 迁移到新的服务器和版本,在 debian11 上的 syslog 中出现此错误。

mariadbd[1640]: 2023-10-20 11:13:52 13360 [Warning] Access denied for user 'centreon'@'localhost' (using password: YES)

我已尝试授予权限

hMariaDB [(none)]> SHOW GRANTS FOR 'centreon'@'localhost';
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Grants for centreon@localhost                                                                                                                                                            |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO `centreon`@`localhost` IDENTIFIED BY PASSWORD '*xxx'                                                                          |
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, CREATE VIEW, EVENT ON `centreon`.* TO `centreon`@`localhost`         |
| GRANT ALL PRIVILEGES ON `mysql`.* TO `centreon`@`localhost`                                                                                                                              |
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, CREATE VIEW, EVENT ON `centreon_storage`.* TO `centreon`@`localhost` |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
4 rows in set (0.000 sec)

但我仍然有这个错误,我该如何修复它?

相关内容