It seems you moved the datadir to your home directory. I think that when you start mysqld via your service manager (in your case systemd) it will be started as an unprivileged user (most likely mysql
). I strongly doubt that this user has privileges to access the homedir of the user elderry
.
So the solution would either be moving your datadir to a more suitable location like /var/lib/mysql
and chown this directory to the user under which mysql runs. Or that you give the mysql user privileges that he can acces the homedir of elderry
.