mariadb.php
- Pfad:
public/static-docs/online/module/mariadb.php - Namespace: -
- Zeilen: 23 | Größe: 701 Bytes
- Geändert: 2025-12-19 23:56:40 | Gescannt: 2025-12-31 10:22:15
Code Hygiene Score: 100
- Dependencies: 100 (25%)
- LOC: 100 (20%)
- Methods: 100 (20%)
- Secrets: 100 (15%)
- Classes: 100 (10%)
- Magic Numbers: 100 (10%)
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>