keep "MariaDB Database Server" alive - centos

today MariaDB Database Server randomly stopped which caused downtime on my website
is there a way to auto start MariaDB Database Server if it randomly stopped?
I had to login to webmin manually start the server.
am running a centos 7 with virtualmin
really appreciate the help.
thanks

Related

Postgresql Service stopped running

I am running PostgreSQL v9.6 on windows 10. Today I tried using a program that uses PostgreSQL Databases and couldn't connect to it. I went to the Services menu in Computer Management and noticed PostgreSQL wasn't running. I tried to run it and received
When I goto PGAdmin4 both Databases are still running however.

Postgresql application server cannot be started

After Installing Postgresql, when I open pgadmin 4, It shows " The application server cannot be started" error.
I tried all ways by reinstalling postgresql and delete the pgadmin folder from appdata\Roaming.
Even I cant restart the service, It automatically stop once I started and stop the service from task manager also and also changes the port number. Its not working.. I am struck.. Please help me to solve the issue.

Ambari doesnt start after postgresql Upgrade

We have a four-node Hadoop cluster with HDP 2.4 and Kerberos installed in it. As this is our production cluster, We wanted to have HA for all the services including the PostgreSQL database which is used by Hive, Ambari, and Oozie for storing the metadata. However, the version of our postgreSQL, which is 8.4.2 doesn't support the inbuilt feature(stream replication) of Postgres.
So, we have decided to upgrade PostgreSQL to a version(9.3) ambari supports.
I followed this link to upgrade the Postgres. Everything went well. Expect that, we are getting the following error when restarting ambari server.
Ambari Server running with administrator privileges.
Running initdb: This may take upto a minute.
Data directory is not empty!
[FAILED]
Could someone help?
Thanks.
Your server want's to initilize the Database. I guess your Server does not see the Ambari DB. Use ambari-server setup zu restore the database Connection. Than the sever should start perfectly.
I found the fix for the issue here.

PostgreSQL could not receive data from server: Software caused connection abort (0x00002745/10053)

I tried to establish a connection in pgAdmin to the PostgresSQL server.
I always get the message:
could not receive data from server: Software caused connection abort (0x00002745/10053).
I read several posts where people had the same problem but they didn't help me.
Because my version was a bit older I uninstalled the whole postgresql and installed the newest version with the installer of EnterpriseDB (PostgreSQL 9.6 on windows 64). Everything looks fine. But I can't connect to the server from pgAdmin 4 again. I get the same error message.
In the logfile is written: "An existing connection was forcibly closed by the remote host"
Has anybody a clue what the problem could be?
A partial solution for me was to restart the postgresql-server each time after booting up my computer with NET STOP and NET START. This was cumbersome but worked.
Because my computer still had other connection problems, subsequently I updated my system to Windows 10 which totally solved all my problems.

Postgresql will not listen unless restarted after every server restart

I have a weird problem since I updated my Postgresql to 9.4 on my Ubuntu Server.
Every time I restart the server, I need to restart manually my PostgreSQL database as well in order that it listen the IP adresses that are in the postgresql.conf file:
Do you have any idea why it might happen?
Thanks!
Edit: The order of services on startup if that can help: