I installed the mariadb add-on and, as far as I can tell, it’s working fine with my HomeAssistant installation. If I navigate to LogBook in the HA web interface, I see the data that I’m collecting. So, that seems fine.However, I do keep getting errors in my log for mariadb.
I’m guessing the errors are from a different component which relies on the database. The IP address that the error is coming from is unknown to me. Perhaps that’s a different docker process?
Here’s the error:
2020-07-08 19:26:11 18 [Warning] Access denied for user 'homeassistant'@'172.30.32.1' (using password: YES)
2020-07-08 19:26:11 19 [Warning] Access denied for user 'homeassistant'@'172.30.32.1' (using password: YES)
2020-07-08 19:26:11 21 [Warning] Access denied for user 'homeassistant'@'172.30.32.1' (using password: YES)
The “%40” was substituted for the original “@” per a recent breaking change.
I have tried several different suggested changes from this forum with no improvement and would appreciate a push in the right direction.
Thanks for your input.
I’m not sure what breaking change you’re referring to but I still have @ in there and it works without issue.
I’m having a hard time reading your examples because you’re not formatting your yaml examples correctly (use triple backticks for multiline blocks of code) but if this is actually your config then it needs to be changed to this:
Also your mariadb config looks completely wrong but I have no idea since it’s being butchered by formatting. Can you please paste it in surrounded by triple backticks so we can see what it actually is?
My apologies about the code format. It does not look anything like what I pasted in, so here is another attempt.
This is my mariadb config:
databases:
- homeassistant
logins:
- username: ha_maria
password: 628500klr
rights:
- username: homeassistant
database: homeassistant```
This is the recorder setting from configuration.yaml
recorder:
`db_url: mysql://ha-maria:628500klr@core-mariadb/homeassistant?charset=utf8mb4`
I apparently got a wrong recommendation concerning @ vs %40
That is not what the breaking change required. It only requires the substitution if % is used in your username or password. You can leave the URL as is.
So is there some other configuration required for the local database user? In phpMyAdmin I can see the homeassistant user has all priveleges to the homeassistant database, except for ‘GRANT’.