mariadb 二进制安装过程中需要注意生成的mariadb.serivce文件中的目录都是usr/local/mysql,而不是mariadb,可能是为了显得跟mysql完全兼容吧,真让人崩溃,即使你是放在usr/local/mariadb中也需要创建软连接 ,否则即使你修改了mariadb.service 中的启动命令也会有其他文件 报错
ln -sv /usr/local/mariadb/ /usr/local/mysql
× mariadb.service - MariaDB 10.11.2 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2023-03-13 20:37:20 CST; 1s ago
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Process: 176971 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 176976 ExecStartPre=/bin/sh -c [ ! -e /usr/local/mysql/bin/galera_recovery ] && VAR= || VAR=cd /usr/local/mysql/bin/..; /usr/local/mysql/bin/galera_recovery
; [ $? -eq 0 ] && sy>
Process: 176980 ExecStart=/usr/local/mysql/bin/mariadbd $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=203/EXEC)
Main PID: 176980 (code=exited, status=203/EXEC)
3月 13 20:37:20 imwms systemd[1]: Starting MariaDB 10.11.2 database server...
3月 13 20:37:20 imwms systemd[1]: mariadb.service: Main process exited, code=exited, status=203/EXEC
3月 13 20:37:20 imwms systemd[1]: mariadb.service: Failed with result 'exit-code'.
3月 13 20:37:20 imwms systemd[1]: Failed to start MariaDB 10.11.2 database server.
~
转载请注明出处:
未经允许不得转载:lxfamn » 【mariadb】CLUSTER $_WSREP_START_POSITION (code=exited, status=203/EXEC)