MariaDB Installation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 39: Line 39:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
brew install mariadb
brew install mariadb
</syntaxhighlight>
==To Start When Needed==
To run on demand:
<syntaxhighlight lang='bash'>
/opt/brew/opt/mariadb/bin/mysqld_safe --datadir\=/opt/brew/var/mysql
</syntaxhighlight>
==To Start at Boot==
<syntaxhighlight lang='bash'>
brew services start mariadb
</syntaxhighlight>
</syntaxhighlight>

Revision as of 03:34, 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

brew install mariadb

To Start When Needed

To run on demand:

/opt/brew/opt/mariadb/bin/mysqld_safe --datadir\=/opt/brew/var/mysql

To Start at Boot

brew services start mariadb