I am trying to setup a mysql database that is hosted on my Synology NAS but I can’t get it to work.
I have installed everything on the NAS, webservice, MariaDB and PHP myAdmin, I have created a user called hass with password hass and a database called hass and granted ALL PRIVILEGES
But It will still not work for me, I get this error in
Error during connection setup: (_mysql_exceptions.OperationalError) (2003, 'Can\'t connect to MySQL server on \'10.0.1.2\' (111 "Connection refused")') (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
If you have a user account allowing any user from localhost to connect is present, it will prevent other users from connecting if the host part of their account allows a connection from any (%) host.
Try to set the hostname for user hass to 10.0.1.4 or 10.0.1.% .
@RogueCrow I checkad and I have DSM firewall inactivated, I forwarded port 3306 to the NAS ip in my touter without any success
@namadori tried to change the hostname, added both without any success.
I still get the error
Error during connection setup: (_mysql_exceptions.OperationalError) (2003, 'Can\'t connect to MySQL server on \'10.0.1.2\' (111 "Connection refused")') (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)