mariadb.php

Code Hygiene Score: 100

Keine Issues gefunden.

Code

<section>
<h2>8. MariaDB</h2>

<h3>8.1 Installation</h3>
<pre><code>apt-get install -y mariadb-server mariadb-client</code></pre>

<h3>8.2 Service starten</h3>
<pre><code>systemctl enable mariadb
systemctl start mariadb</code></pre>

<h3>8.3 Sicherheitskonfiguration</h3>
<pre><code>mariadb-secure-installation</code></pre>

<h3>8.4 Datenbank erstellen</h3>
<pre><code>mariadb -e "CREATE DATABASE dbname CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"
mariadb -e "CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';"
mariadb -e "GRANT ALL PRIVILEGES ON dbname.* TO 'username'@'localhost';"
mariadb -e "FLUSH PRIVILEGES;"</code></pre>

<h3>8.5 Version</h3>
<p>MariaDB 11.8.3</p>
</section>
← Übersicht