Home arrow Blog arrow Move MySQL data to /home on Debian

Move MySQL data to /home on Debian

This may be blocked by the MariaDB service. To fix correctly override the service file with a local copy:

1: sudo cp /lib/systemd/system/mariadb.service /etc/systemd/system

  1. Edit /etc/systemd/system/mariadb.service and change ProtectHome to be false (ProtectHome=false). Save the file

  2. sudo systemd daemon-reload # refresh the systemd services so it sees your override file

  3. sudo systemctl start mysql # and it should finally start

#128009 • 04/08/2019 8:02pm by Martin Brampton • Vote: Up votes (2) Down votes (0)