Il server MySQL non si avvia dopo lo spostamento di dir di dati

Sto cercando di spostare i dati dir di MySQL su un'unità esterna su un odroid (mini computer simile al lampone).

Sto usando Ubuntu 14.04.

Ho cambiato i routes in tutti i file di configuration contenenti /var/lib/mysql e ho spostato tutte le cartelle mysql sulla mia nuova unità.

Il servizio non si avvia più e non so come risolvere questo problema.

Ecco tutti i routes modificati:

 root@odroid-server:/etc# grep -rnw '/etc' -e "/var/lib/mysql" root@odroid-server:/etc# grep -rnw '/etc' -e "/media/md0/mysql" /etc/apparmor.d/abstractions/mysql:12: /media/md0/mysql{,d}/mysql{,d}.sock rw, /etc/apparmor.d/tunables/alias:16:# alias /media/md0/mysql/ -> /home/mysql/, /etc/apparmor.d/usr.sbin.mysqld:49: /media/md0/mysql/ r, /etc/apparmor.d/usr.sbin.mysqld:50: /media/md0/mysql/** rwk, /etc/apparmor.d/usr.sbin.mysqld:53: /media/md0/mysql-files/ r, /etc/apparmor.d/usr.sbin.mysqld:54: /media/md0/mysql-files/** rwk, /etc/apparmor.d/usr.sbin.mysqld:57: /media/md0/mysql-keyring/ r, /etc/apparmor.d/usr.sbin.mysqld:58: /media/md0/mysql-keyring/** rwk, /etc/imscp/imscp.conf:37:DATABASE_DIR = /media/md0/mysql /etc/mysql/mysql.conf.d/mysqld.cnf:36:datadir = /media/md0/mysql /etc/mysql/mysql.conf.d/mysqld.cnf:92:# InnoDB is enabled by default with a 10MB datafile in /media/md0/mysql/. /etc/mysql/mysql.conf.d/mysqld.cnf:98:# chroot = /media/md0/mysql/ 

Quindi avviare il servizio:

 root@odroid-server:/etc# service mysql start Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. 

Ho provato questo command per ulteriori dettagli e posso vedere che utilizza ancora il datadir vecchio mysql.

 root@odroid-server:/etc# journalctl -xe Nov 18 13:06:45 odroid-server systemd[1]: Starting MySQL Community Server... -- Subject: Unit mysql.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit mysql.service has begun starting up. Nov 18 13:06:45 odroid-server mysql-systemd-start[24276]: MySQL data dir not found at /var/lib/mysql. Please create one. Nov 18 13:06:45 odroid-server systemd[1]: mysql.service: Control process exited, code=exited status=1 Nov 18 13:06:45 odroid-server systemd[1]: Failed to start MySQL Community Server. -- Subject: Unit mysql.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit mysql.service has failed. -- -- The result is failed. Nov 18 13:06:45 odroid-server systemd[1]: mysql.service: Unit entered failed state. Nov 18 13:06:45 odroid-server systemd[1]: mysql.service: Failed with result 'exit-code'. Nov 18 13:06:45 odroid-server systemd[1]: mysql.service: Service hold-off time over, scheduling restart. Nov 18 13:06:45 odroid-server systemd[1]: Stopped MySQL Community Server. -- Subject: Unit mysql.service has finished shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit mysql.service has finished shutting down. Nov 18 13:06:45 odroid-server systemd[1]: mysql.service: Start request repeated too quickly. Nov 18 13:06:45 odroid-server systemd[1]: Failed to start MySQL Community Server. -- Subject: Unit mysql.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit mysql.service has failed. -- -- The result is failed. 

Forse c'è qualche command per ricaricare i file di configuration nuovamente in ram?

Suggerimenti per Linux e Windows Server, quali Ubuntu, Centos, Apache, Nginx, Debian e argomenti di rete.