MariaDB Installation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
=Linux=
=Linux=


=Prerequisites=
==Prerequisites==


* The host name should be resolvable with resolveip.
* The host name should be resolvable with resolveip.


=RHEL 7=
==RHEL 7==


<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
Line 17: Line 17:
⚠️ After installation, makes sure you go through the post install steps, described below.
⚠️ After installation, makes sure you go through the post install steps, described below.


=Post-Install=
==Post-Install==


{{Internal|MariaDB_Configuration#Post-Install|MariaDB Configuration - Post Install}}
{{Internal|MariaDB_Configuration#Post-Install|MariaDB Configuration - Post Install}}


=Uninstallation=
==Uninstallation==


Uninstallation with state removal:
Uninstallation with state removal:
Line 35: Line 35:
rm -r /var/run/mariadb
rm -r /var/run/mariadb
</syntaxhighlight>
</syntaxhighlight>
=Mac=

Revision as of 03:31, 25 December 2023

Internal

Linux

Prerequisites

  • The host name should be resolvable with resolveip.

RHEL 7

yum install -y mariadb-server mariadb

⚠️ After installation, makes sure you go through the post install steps, described below.

Post-Install

MariaDB Configuration - Post Install

Uninstallation

Uninstallation with state removal:

systemctl stop mariadb.service
systemctl disable mariadb.service
yum remove mariadb-server mariadb
# remove data
rm -r /var/lib/mysql
# remove logs
rm -r /var/log/mariadb
rm -r /var/run/mariadb

Mac