- Server operating system version
- AlmaLinux 8.10 (Cerulean Leopard)
- Plesk version and microupdate number
- Plesk Obsidian v18.0.62_build1800240724.11 os_RedHat el8
I have completed the install of MariadB 10.6 , server, client, common and shared without any error messages. [see below]. However when I try and start MariaDB
sudo systemctl start mariadb , I get this error message...
.
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
I found this post dealing with this error MySQL (MariaDB) Not Starting and ran this code...
cd /var/lib/mysql
ls
rm -r *
mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
systemctl start mysqld
systemctl start mysql.service
systemctl start mariadb
But trying to start mariadb gives this message Job for mariadb.service failed because the control process exited with error code.
It seems to me I'm nearly there with the install. Please can someone help point what I'm doing wrong which is stopping the service starting. Thanks.
Here's part of the install process...
Install 8 Packages
Total download size: 43 M
Downloading Packages:
(1/8): boost-program-options-1.66.0-13.el8.x86_ 1.7 MB/s | 140 kB 00:00
(2/8): socat-1.7.4.1-1.el8.x86_64.rpm 2.1 MB/s | 322 kB 00:00
(3/8): perl-DBI-1.641-4.module_el8.6.0+2823+173 4.7 MB/s | 739 kB 00:00
(4/8): MariaDB-client-10.6.19-1.el8.x86_64.rpm 47 MB/s | 15 MB 00:00
(5/8): MariaDB-server-10.6.19-1.el8.x86_64.rpm 60 MB/s | 26 MB 00:00
(6/8): MariaDB-common-10.6.19-1.el8.x86_64.rpm 198 kB/s | 88 kB 00:00
(7/8): MariaDB-shared-10.6.19-1.el8.x86_64.rpm 430 kB/s | 128 kB 00:00
(8/8): galera-4-26.4.19-1.el8.x86_64.rpm 8.8 MB/s | 1.7 MB 00:00
--------------------------------------------------------------------------------
Total 40 MB/s | 43 MB 00:01
MariaDB 190 kB/s | 15 kB 00:00
Importing GPG key 0x1BB943DB:
Userid : "MariaDB Package Signing Key <[email protected]>"
Fingerprint: 1993 69E5 404B D5FC 7D2F E43B CBCB 082A 1BB9 43DB
From : https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
Key imported successfully
Importing GPG key 0xC74CD1D8:
Userid : "MariaDB Signing Key <[email protected]>"
Fingerprint: 177F 4010 FE56 CA33 3630 0305 F165 6F24 C74C D1D8
From : https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: MariaDB-shared-10.6.19-1.el8.x86_64 1/1
Installing : MariaDB-shared-10.6.19-1.el8.x86_64 1/14
Running scriptlet: MariaDB-shared-10.6.19-1.el8.x86_64 1/14
Installing : MariaDB-common-10.6.19-1.el8.x86_64 2/14
warning: /etc/my.cnf created as /etc/my.cnf.rpmnew
Installing : socat-1.7.4.1-1.el8.x86_64 3/14
Installing : perl-DBI-1.641-4.module_el8.6.0+2823+173faa7e.x86_ 4/14
Installing : MariaDB-client-10.6.19-1.el8.x86_64 5/14
Installing : boost-program-options-1.66.0-13.el8.x86_64 6/14
Running scriptlet: boost-program-options-1.66.0-13.el8.x86_64 6/14
Running scriptlet: galera-4-26.4.19-1.el8.x86_64 7/14
Installing : galera-4-26.4.19-1.el8.x86_64 7/14
Running scriptlet: galera-4-26.4.19-1.el8.x86_64 7/14
Running scriptlet: MariaDB-server-10.6.19-1.el8.x86_64 8/14
Installing : MariaDB-server-10.6.19-1.el8.x86_64 8/14
Running scriptlet: MariaDB-server-10.6.19-1.el8.x86_64 8/14
Obsoleting : mariadb-3:10.3.39-1.module_el8.8.0+3609+204d4ab0.x 9/14
Running scriptlet: mariadb-server-3:10.3.39-1.module_el8.8.0+3609+204 10/14
Obsoleting : mariadb-server-3:10.3.39-1.module_el8.8.0+3609+204 10/14
Running scriptlet: mariadb-server-3:10.3.39-1.module_el8.8.0+3609+204 10/14
Obsoleting : mariadb-connector-c-3.1.11-2.el8_3.x86_64 11/14
Obsoleting : mariadb-errmsg-3:10.3.39-1.module_el8.8.0+3609+204 12/14
Obsoleting : mariadb-common-3:10.3.39-1.module_el8.8.0+3609+204 13/14
Obsoleting : mariadb-connector-c-config-3.1.11-2.el8_3.noarch 14/14
Running scriptlet: MariaDB-server-10.6.19-1.el8.x86_64 14/14
Running scriptlet: mariadb-connector-c-config-3.1.11-2.el8_3.noarch 14/14
Verifying : boost-program-options-1.66.0-13.el8.x86_64 1/14
Verifying : perl-DBI-1.641-4.module_el8.6.0+2823+173faa7e.x86_ 2/14
Verifying : socat-1.7.4.1-1.el8.x86_64 3/14
Verifying : MariaDB-client-10.6.19-1.el8.x86_64 4/14
Verifying : mariadb-3:10.3.39-1.module_el8.8.0+3609+204d4ab0.x 5/14
Verifying : MariaDB-common-10.6.19-1.el8.x86_64 6/14
Verifying : mariadb-common-3:10.3.39-1.module_el8.8.0+3609+204 7/14
Verifying : mariadb-errmsg-3:10.3.39-1.module_el8.8.0+3609+204 8/14
Verifying : MariaDB-server-10.6.19-1.el8.x86_64 9/14
Verifying : mariadb-server-3:10.3.39-1.module_el8.8.0+3609+204 10/14
Verifying : MariaDB-shared-10.6.19-1.el8.x86_64 11/14
Verifying : mariadb-connector-c-3.1.11-2.el8_3.x86_64 12/14
Verifying : mariadb-connector-c-config-3.1.11-2.el8_3.noarch 13/14
Verifying : galera-4-26.4.19-1.el8.x86_64 14/14
Installed:
MariaDB-client-10.6.19-1.el8.x86_64
MariaDB-common-10.6.19-1.el8.x86_64
MariaDB-server-10.6.19-1.el8.x86_64
MariaDB-shared-10.6.19-1.el8.x86_64
boost-program-options-1.66.0-13.el8.x86_64
galera-4-26.4.19-1.el8.x86_64
perl-DBI-1.641-4.module_el8.6.0+2823+173faa7e.x86_64
socat-1.7.4.1-1.el8.x86_64
Complete!
[peterkaye@128 ~]$ sudo dnf install galera-4 MariaDB-client MariaDB-shared MariaDB-backup MariaDB-common -y
Last metadata expiration check: 0:02:01 ago on Fri 04 Oct 2024 08:49:51 AM UTC.
Package galera-4-26.4.19-1.el8.x86_64 is already installed.
Package MariaDB-client-10.6.19-1.el8.x86_64 is already installed.
Package MariaDB-shared-10.6.19-1.el8.x86_64 is already installed.
Package MariaDB-common-10.6.19-1.el8.x86_64 is already installed.
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Installing:
MariaDB-backup x86_64 10.6.19-1.el8 mariadb 7.2 M
Transaction Summary
================================================================================
Install 1 Package
Total download size: 7.2 M
Installed size: 28 M
Downloading Packages:
MariaDB-backup-10.6.19-1.el8.x86_64.rpm 25 MB/s | 7.2 MB 00:00
--------------------------------------------------------------------------------
Total 25 MB/s | 7.2 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : MariaDB-backup-10.6.19-1.el8.x86_64 1/1
Running scriptlet: MariaDB-backup-10.6.19-1.el8.x86_64 1/1
Verifying : MariaDB-backup-10.6.19-1.el8.x86_64 1/1
Installed:
MariaDB-backup-10.6.19-1.el8.x86_64
Complete!
[peterkaye@128 ~]$ sudo systemctl start mariadb
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
[peterkaye@128 ~]$
sudo systemctl start mariadb , I get this error message...
.
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
I found this post dealing with this error MySQL (MariaDB) Not Starting and ran this code...
cd /var/lib/mysql
ls
rm -r *
mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
systemctl start mysqld
systemctl start mysql.service
systemctl start mariadb
But trying to start mariadb gives this message Job for mariadb.service failed because the control process exited with error code.
It seems to me I'm nearly there with the install. Please can someone help point what I'm doing wrong which is stopping the service starting. Thanks.
Here's part of the install process...
Install 8 Packages
Total download size: 43 M
Downloading Packages:
(1/8): boost-program-options-1.66.0-13.el8.x86_ 1.7 MB/s | 140 kB 00:00
(2/8): socat-1.7.4.1-1.el8.x86_64.rpm 2.1 MB/s | 322 kB 00:00
(3/8): perl-DBI-1.641-4.module_el8.6.0+2823+173 4.7 MB/s | 739 kB 00:00
(4/8): MariaDB-client-10.6.19-1.el8.x86_64.rpm 47 MB/s | 15 MB 00:00
(5/8): MariaDB-server-10.6.19-1.el8.x86_64.rpm 60 MB/s | 26 MB 00:00
(6/8): MariaDB-common-10.6.19-1.el8.x86_64.rpm 198 kB/s | 88 kB 00:00
(7/8): MariaDB-shared-10.6.19-1.el8.x86_64.rpm 430 kB/s | 128 kB 00:00
(8/8): galera-4-26.4.19-1.el8.x86_64.rpm 8.8 MB/s | 1.7 MB 00:00
--------------------------------------------------------------------------------
Total 40 MB/s | 43 MB 00:01
MariaDB 190 kB/s | 15 kB 00:00
Importing GPG key 0x1BB943DB:
Userid : "MariaDB Package Signing Key <[email protected]>"
Fingerprint: 1993 69E5 404B D5FC 7D2F E43B CBCB 082A 1BB9 43DB
From : https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
Key imported successfully
Importing GPG key 0xC74CD1D8:
Userid : "MariaDB Signing Key <[email protected]>"
Fingerprint: 177F 4010 FE56 CA33 3630 0305 F165 6F24 C74C D1D8
From : https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: MariaDB-shared-10.6.19-1.el8.x86_64 1/1
Installing : MariaDB-shared-10.6.19-1.el8.x86_64 1/14
Running scriptlet: MariaDB-shared-10.6.19-1.el8.x86_64 1/14
Installing : MariaDB-common-10.6.19-1.el8.x86_64 2/14
warning: /etc/my.cnf created as /etc/my.cnf.rpmnew
Installing : socat-1.7.4.1-1.el8.x86_64 3/14
Installing : perl-DBI-1.641-4.module_el8.6.0+2823+173faa7e.x86_ 4/14
Installing : MariaDB-client-10.6.19-1.el8.x86_64 5/14
Installing : boost-program-options-1.66.0-13.el8.x86_64 6/14
Running scriptlet: boost-program-options-1.66.0-13.el8.x86_64 6/14
Running scriptlet: galera-4-26.4.19-1.el8.x86_64 7/14
Installing : galera-4-26.4.19-1.el8.x86_64 7/14
Running scriptlet: galera-4-26.4.19-1.el8.x86_64 7/14
Running scriptlet: MariaDB-server-10.6.19-1.el8.x86_64 8/14
Installing : MariaDB-server-10.6.19-1.el8.x86_64 8/14
Running scriptlet: MariaDB-server-10.6.19-1.el8.x86_64 8/14
Obsoleting : mariadb-3:10.3.39-1.module_el8.8.0+3609+204d4ab0.x 9/14
Running scriptlet: mariadb-server-3:10.3.39-1.module_el8.8.0+3609+204 10/14
Obsoleting : mariadb-server-3:10.3.39-1.module_el8.8.0+3609+204 10/14
Running scriptlet: mariadb-server-3:10.3.39-1.module_el8.8.0+3609+204 10/14
Obsoleting : mariadb-connector-c-3.1.11-2.el8_3.x86_64 11/14
Obsoleting : mariadb-errmsg-3:10.3.39-1.module_el8.8.0+3609+204 12/14
Obsoleting : mariadb-common-3:10.3.39-1.module_el8.8.0+3609+204 13/14
Obsoleting : mariadb-connector-c-config-3.1.11-2.el8_3.noarch 14/14
Running scriptlet: MariaDB-server-10.6.19-1.el8.x86_64 14/14
Running scriptlet: mariadb-connector-c-config-3.1.11-2.el8_3.noarch 14/14
Verifying : boost-program-options-1.66.0-13.el8.x86_64 1/14
Verifying : perl-DBI-1.641-4.module_el8.6.0+2823+173faa7e.x86_ 2/14
Verifying : socat-1.7.4.1-1.el8.x86_64 3/14
Verifying : MariaDB-client-10.6.19-1.el8.x86_64 4/14
Verifying : mariadb-3:10.3.39-1.module_el8.8.0+3609+204d4ab0.x 5/14
Verifying : MariaDB-common-10.6.19-1.el8.x86_64 6/14
Verifying : mariadb-common-3:10.3.39-1.module_el8.8.0+3609+204 7/14
Verifying : mariadb-errmsg-3:10.3.39-1.module_el8.8.0+3609+204 8/14
Verifying : MariaDB-server-10.6.19-1.el8.x86_64 9/14
Verifying : mariadb-server-3:10.3.39-1.module_el8.8.0+3609+204 10/14
Verifying : MariaDB-shared-10.6.19-1.el8.x86_64 11/14
Verifying : mariadb-connector-c-3.1.11-2.el8_3.x86_64 12/14
Verifying : mariadb-connector-c-config-3.1.11-2.el8_3.noarch 13/14
Verifying : galera-4-26.4.19-1.el8.x86_64 14/14
Installed:
MariaDB-client-10.6.19-1.el8.x86_64
MariaDB-common-10.6.19-1.el8.x86_64
MariaDB-server-10.6.19-1.el8.x86_64
MariaDB-shared-10.6.19-1.el8.x86_64
boost-program-options-1.66.0-13.el8.x86_64
galera-4-26.4.19-1.el8.x86_64
perl-DBI-1.641-4.module_el8.6.0+2823+173faa7e.x86_64
socat-1.7.4.1-1.el8.x86_64
Complete!
[peterkaye@128 ~]$ sudo dnf install galera-4 MariaDB-client MariaDB-shared MariaDB-backup MariaDB-common -y
Last metadata expiration check: 0:02:01 ago on Fri 04 Oct 2024 08:49:51 AM UTC.
Package galera-4-26.4.19-1.el8.x86_64 is already installed.
Package MariaDB-client-10.6.19-1.el8.x86_64 is already installed.
Package MariaDB-shared-10.6.19-1.el8.x86_64 is already installed.
Package MariaDB-common-10.6.19-1.el8.x86_64 is already installed.
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Installing:
MariaDB-backup x86_64 10.6.19-1.el8 mariadb 7.2 M
Transaction Summary
================================================================================
Install 1 Package
Total download size: 7.2 M
Installed size: 28 M
Downloading Packages:
MariaDB-backup-10.6.19-1.el8.x86_64.rpm 25 MB/s | 7.2 MB 00:00
--------------------------------------------------------------------------------
Total 25 MB/s | 7.2 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : MariaDB-backup-10.6.19-1.el8.x86_64 1/1
Running scriptlet: MariaDB-backup-10.6.19-1.el8.x86_64 1/1
Verifying : MariaDB-backup-10.6.19-1.el8.x86_64 1/1
Installed:
MariaDB-backup-10.6.19-1.el8.x86_64
Complete!
[peterkaye@128 ~]$ sudo systemctl start mariadb
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
[peterkaye@128 ~]$