我试图从MySQL迁移到Debian 8上的MariaDB。所以,我停止了MYSQL服务。 然后遵循以下步骤:
1:
sudo apt-get install software-properties-common sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.2/debian jessie main'
2:
apt-get install mariadb-server mariadb-client
在安装结束时,在启动服务时存在以下消息:
Unpacking mariadb-server (10.2.6+maria~jessie) ... Processing triggers for systemd (215-17+deb8u7) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up libmariadb3 (10.2.6+maria~jessie) ... Setting up mariadb-client-core-10.2 (10.2.6+maria~jessie) ... Setting up mariadb-client-10.2 (10.2.6+maria~jessie) ... Setting up mariadb-server-core-10.2 (10.2.6+maria~jessie) ... Setting up mariadb-server-10.2 (10.2.6+maria~jessie) ... 2017-07-06 22:34:17 139856898287488 [Note] Using unique option prefix 'key_buffer' is error-prone and can break in the future. Please use the full name 'key_buffer_size' instead. 2017-07-06 22:34:17 139856898287488 [Warning] Ignoring user change to 'XYZ' because the user was set to 'mysql' earlier on the command line 2017-07-06 22:34:17 139856898287488 [Note] /usr/sbin/mysqld (mysqld 10.2.6-MariaDB-10.2.6+maria~jessie) starting as process 3456 ... Job for mariadb.service failed. See 'systemctl status mariadb.service' and 'journalctl -xn' for details. invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing package mariadb-server-10.2 (--configure): subprocess installed post-installation script returned error exit status 1 Setting up mariadb-client (10.2.6+maria~jessie) ... dpkg: dependency problems prevent configuration of mariadb-server: mariadb-server depends on mariadb-server-10.2 (>= 10.2.6+maria~jessie); however: Package mariadb-server-10.2 is not configured yet. dpkg: error processing package mariadb-server (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.19-18+deb8u10) ... Processing triggers for systemd (215-17+deb8u7) ... Errors were encountered while processing: mariadb-server-10.2 mariadb-server E: Sub-process /usr/bin/dpkg returned an error code (1)
使用以下方法后,我已经尝试了这些步骤2-3次,但错误似乎仍然存在:
apt-get remove --purge mariadb*
编辑:
以下是journalctl -xn的输出
-- Unit mariadb.service has begun starting up. Jul 06 23:24:44 debian-4gb-blr1-01 systemd[1]: Failed to reset devices.list on /system.slice: Invalid argument Jul 06 23:24:44 debian-4gb-blr1-01 systemd[11526]: Failed at step USER spawning /usr/bin/install: No such process -- Subject: Process /usr/bin/install could not be executed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- The process /usr/bin/install could not be executed and failed. -- -- The error number returned while executing this process is 3. Jul 06 23:24:44 debian-4gb-blr1-01 systemd[1]: mariadb.service: control process exited, code=exited status=217 Jul 06 23:24:44 debian-4gb-blr1-01 systemd[1]: Failed to start MariaDB database server. -- Subject: Unit mariadb.service has failed -- Defined-By: systemd -- -- -- Unit mariadb.service has failed. -- -- The result is failed. Jul 06 23:24:44 debian-4gb-blr1-01 systemd[1]: Unit mariadb.service entered failed state. Jul 06 23:24:44 debian-4gb-blr1-01 systemd[1]: Reloading. Jul 06 23:24:44 debian-4gb-blr1-01 systemd[1]: Started ACPI event daemon. -- Subject: Unit acpid.service has finished start-up -- Defined-By: systemd --
任何想法我可能会错过。