-1
Archlinux,MariaDB 10.1.25如何移動目錄/ var/lib/mysql
我有工作的MySQL。現在我決定用數據移動目錄。
我試圖將/ var/lib/mysql移動到/ home/srv/mysql。並創建符號鏈接到舊路徑(/ var/lib/mysql)。但mysqld的提示錯誤:
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
systemctl狀態mariadb.service:
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2017-08-02 20:19:17 +10; 7min ago
Process: 29629 ExecStart=/usr/bin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
Process: 29576 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exite
Process: 29575 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Main PID: 29629 (code=exited, status=1/FAILURE)
Status: "MariaDB server is down"
訪問權限是正確的。用戶mysql,組mysql。
告訴我我做錯了什麼。