Please help with Maria DB: Warning Access denied for user (using password: YES)

Logger: homeassistant.setup
Source: setup.py:152
First occurred: 7:33:24 AM (3 occurrences)
Last logged: 7:33:58 AM

Unable to set up dependencies of logbook. Setup failed for dependencies: recorder
Unable to set up dependencies of history. Setup failed for dependencies: recorder
Unable to set up dependencies of default_config. Setup failed for dependencies: history, logbook

Are you using the standard SQL database?

If so delete your database and restart (search the forum, there are a huge number of posts about this).

You will lose your previously saved history data.

1 Like

I have been using Maria DB for more than a year. I lost power and after that I am getting the warning. I reinstalled Maria DB and that didn’t fix it.

On my configuration.yaml:

recorder:
 db_url: mysql://hass_db_admin:(mypassword)@core-mariadb/homeassistant_db?charset=utf8

From Logs:

Version: '10.4.17-MariaDB'  socket: '/run/mysqld/mysqld.sock'  port: 3306  MariaDB Server
[10:23:17] INFO: Check data integrity and fix corruptions
mysql.column_stats                                 OK
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.global_priv                                  OK
mysql.gtid_slave_pos                               OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.index_stats                                  OK
mysql.innodb_index_stats                           OK
mysql.innodb_table_stats                           OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.roles_mapping                                OK
mysql.servers                                      OK
mysql.table_stats                                  OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.transaction_registry                         OK
[10:23:17] INFO: Ensuring internal database upgrades are performed
This installation of MariaDB is already upgraded to 10.4.17-MariaDB, use --force if you still need to run mysql_upgrade
[10:23:18] INFO: Ensure databases exists
[10:23:18] INFO: Create database homeassistant_db
[10:23:18] INFO: Ensure users exists and are updated
[10:23:18] INFO: Update user hass_db_admin
[10:23:18] INFO: Init/Update rights
[10:23:19] INFO: Granting all privileges to hass_db_admin on homeassistant_db
[10:23:19] INFO: Successfully send service information to Home Assistant.
2021-06-09 10:24:43 22 [Warning] Access denied for user 'hass_db_admin'@'172.30.32.1' (using password: YES)

For a solution, have a look here: Error trying to connect mariadb from another host - #7 by thomine