Modify the MariaDB path to the home path,
When executing systemctl start mariadb startup mariadb, 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.
Systemctl Status Mariadb.service View error details
[Warning] Can ' t create test file/home/data/mariadbdata/localhost.lower-testmariadb.service:main process exited, code=exited, status=1/failurefailed to start MariaDB 10.3.9 database server.
The problem is because MARIADB has no access to the home path
Workaround:
1. Turn off SELinux
2. Modify the storage path permissions,
Chown-r Mysql:mysql/home/mysql_datachmod-r 764/home/mysql_data
3. If your storage path is the path below home, then here's the point:
Vim/etc/systemd/system/mariadb.service.d/homedir.conf
Enter the following content
[Service] Protecthome=false
And then execute
Systemctl Daemon-reload
Restart MARIADB
Systemctl Start mariadb
MariaDB start failure resolution after modifying storage path