<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nl">
	<id>https://thuis.kwantwebdesign.nl/index.php?action=history&amp;feed=atom&amp;title=Mariadb</id>
	<title>Mariadb - Bewerkingsoverzicht</title>
	<link rel="self" type="application/atom+xml" href="https://thuis.kwantwebdesign.nl/index.php?action=history&amp;feed=atom&amp;title=Mariadb"/>
	<link rel="alternate" type="text/html" href="https://thuis.kwantwebdesign.nl/index.php?title=Mariadb&amp;action=history"/>
	<updated>2026-07-03T09:22:20Z</updated>
	<subtitle>Bewerkingsoverzicht voor deze pagina op de wiki</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>https://thuis.kwantwebdesign.nl/index.php?title=Mariadb&amp;diff=88&amp;oldid=prev</id>
		<title>Erwin op 22 feb 2024 om 08:01</title>
		<link rel="alternate" type="text/html" href="https://thuis.kwantwebdesign.nl/index.php?title=Mariadb&amp;diff=88&amp;oldid=prev"/>
		<updated>2024-02-22T08:01:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;nl&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Oudere versie&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versie van 22 feb 2024 08:01&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Regel 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Regel 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;WireGuard&lt;/del&gt;|Menu]] [[WireGuard]]  [[PhpMyAdmin]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hoofdpagina&lt;/ins&gt;|Menu]] [[WireGuard]]  [[PhpMyAdmin]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== MariaDB Installeren ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== MariaDB Installeren ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Erwin</name></author>
	</entry>
	<entry>
		<id>https://thuis.kwantwebdesign.nl/index.php?title=Mariadb&amp;diff=49&amp;oldid=prev</id>
		<title>Erwin op 14 jan 2023 om 12:00</title>
		<link rel="alternate" type="text/html" href="https://thuis.kwantwebdesign.nl/index.php?title=Mariadb&amp;diff=49&amp;oldid=prev"/>
		<updated>2023-01-14T12:00:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;nl&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Oudere versie&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versie van 14 jan 2023 12:00&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Regel 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Regel 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[WireGuard|Menu]] [[WireGuard]]  [[PhpMyAdmin]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[WireGuard|Menu]] [[WireGuard]]  [[PhpMyAdmin]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== MariaDB Installeren ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Om gebruik te maken van phpMyAdmin moet je wel een database hebben.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Om gebruik te maken van phpMyAdmin moet je wel een database hebben.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Erwin</name></author>
	</entry>
	<entry>
		<id>https://thuis.kwantwebdesign.nl/index.php?title=Mariadb&amp;diff=45&amp;oldid=prev</id>
		<title>Erwin: Nieuwe pagina aangemaakt met 'Menu WireGuard  PhpMyAdmin  Om gebruik te maken van phpMyAdmin moet je wel een database hebben.  Om deze te installeren doe je het volgende:  &lt;code&gt;sudo dnf install mariadb-server mariadb&lt;/code&gt; Dependency Tree:  Transaction Summary  ================================================================================  Install  13 Packages    Total download size: 18 M  Installed size: 107 M  Is this ok [y/N]: y Once installed, start and enable...'</title>
		<link rel="alternate" type="text/html" href="https://thuis.kwantwebdesign.nl/index.php?title=Mariadb&amp;diff=45&amp;oldid=prev"/>
		<updated>2023-01-14T11:57:15Z</updated>

		<summary type="html">&lt;p&gt;Nieuwe pagina aangemaakt met &amp;#039;&lt;a href=&quot;/index.php?title=WireGuard&quot; title=&quot;WireGuard&quot;&gt;Menu&lt;/a&gt; &lt;a href=&quot;/index.php?title=WireGuard&quot; title=&quot;WireGuard&quot;&gt;WireGuard&lt;/a&gt;  &lt;a href=&quot;/index.php?title=PhpMyAdmin&quot; title=&quot;PhpMyAdmin&quot;&gt;PhpMyAdmin&lt;/a&gt;  Om gebruik te maken van phpMyAdmin moet je wel een database hebben.  Om deze te installeren doe je het volgende:  &amp;lt;code&amp;gt;sudo dnf install mariadb-server mariadb&amp;lt;/code&amp;gt; Dependency Tree:  Transaction Summary  ================================================================================  Install  13 Packages    Total download size: 18 M  Installed size: 107 M  Is this ok [y/N]: y Once installed, start and enable...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nieuwe pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[WireGuard|Menu]] [[WireGuard]]  [[PhpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
Om gebruik te maken van phpMyAdmin moet je wel een database hebben.&lt;br /&gt;
&lt;br /&gt;
Om deze te installeren doe je het volgende:&lt;br /&gt;
 &amp;lt;code&amp;gt;sudo dnf install mariadb-server mariadb&amp;lt;/code&amp;gt;&lt;br /&gt;
Dependency Tree:&lt;br /&gt;
 Transaction Summary&lt;br /&gt;
 ================================================================================&lt;br /&gt;
 Install  13 Packages&lt;br /&gt;
 &lt;br /&gt;
 Total download size: 18 M&lt;br /&gt;
 Installed size: 107 M&lt;br /&gt;
 Is this ok [y/N]: y&lt;br /&gt;
Once installed, start and enable MariaDB the service:&lt;br /&gt;
 &amp;lt;code&amp;gt;sudo systemctl enable --now mariadb&amp;lt;/code&amp;gt;&lt;br /&gt;
Verify if the service is running:&lt;br /&gt;
 $ systemctl status mariadb&lt;br /&gt;
 ● mariadb.service - MariaDB 10.5 database server&lt;br /&gt;
      Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)&lt;br /&gt;
      Active: active (running) since Sat 2022-07-23 10:05:47 CEST; 2s ago&lt;br /&gt;
        Docs: man:mariadbd(8)&lt;br /&gt;
              &amp;lt;nowiki&amp;gt;https://mariadb.com/kb/en/library/systemd/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
     Process: 18153 ExecStartPre=/usr/libexec/mariadb-check-socket (code=exited, status=0/SUCCESS)&lt;br /&gt;
     Process: 18175 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir mariadb.service (code=exited, status=0/SUCCESS)&lt;br /&gt;
     Process: 20589 ExecStartPost=/usr/libexec/mariadb-check-upgrade (code=exited, status=0/SUCCESS)&lt;br /&gt;
    Main PID: 20448 (mariadbd)&lt;br /&gt;
      Status: &amp;quot;Taking your SQL requests now...&amp;quot;&lt;br /&gt;
       Tasks: 12 (limit: 23441)&lt;br /&gt;
      Memory: 78.5M&lt;br /&gt;
         CPU: 268ms&lt;br /&gt;
      CGroup: /system.slice/mariadb.service&lt;br /&gt;
              └─20448 /usr/libexec/mariadbd --basedir=/usr&lt;br /&gt;
&lt;br /&gt;
== #2. Using MariaDB on Rocky Linux 9|AlmaLinux 9 ==&lt;br /&gt;
Once installed MariaDB/MySQL databases can be used. First, secure the installation by setting a password for the root user.&lt;br /&gt;
 &amp;lt;code&amp;gt;sudo mysql_secure_installation&amp;lt;/code&amp;gt;&lt;br /&gt;
Proceed as shown: On MariaDB:&lt;br /&gt;
 NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB&lt;br /&gt;
       SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!&lt;br /&gt;
 &lt;br /&gt;
 In order to log into MariaDB to secure it, we'll need the current&lt;br /&gt;
 password for the root user. If you've just installed MariaDB, and&lt;br /&gt;
 haven't set the root password yet, you should just press enter here.&lt;br /&gt;
 &lt;br /&gt;
 Enter current password for root (enter for none): Press_Enter&lt;br /&gt;
 OK, successfully used password, moving on...&lt;br /&gt;
 &lt;br /&gt;
 Setting the root password or using the unix_socket ensures that nobody&lt;br /&gt;
 can log into the MariaDB root user without the proper authorisation.&lt;br /&gt;
 &lt;br /&gt;
 You already have your root account protected, so you can safely answer 'n'.&lt;br /&gt;
 &lt;br /&gt;
 Switch to unix_socket authentication [Y/n] y&lt;br /&gt;
 &lt;br /&gt;
 You already have your root account protected, so you can safely answer 'n'.&lt;br /&gt;
 &lt;br /&gt;
 Change the root password? [Y/n] y&lt;br /&gt;
 New password: &lt;br /&gt;
 Re-enter new password: &lt;br /&gt;
 Password updated successfully!&lt;br /&gt;
 .....&lt;br /&gt;
 Remove anonymous users? [Y/n] y&lt;br /&gt;
 ....&lt;br /&gt;
 Disallow root login remotely? [Y/n] y&lt;br /&gt;
 ...&lt;br /&gt;
 Remove test database and access to it? [Y/n] y&lt;br /&gt;
 ....&lt;br /&gt;
 Reload privilege tables now? [Y/n] y&lt;br /&gt;
 All done!  If you've completed all of the above steps, your MariaDB&lt;br /&gt;
 installation should now be secure.&lt;br /&gt;
 &lt;br /&gt;
 Thanks for using MariaDB!&lt;br /&gt;
Now login using the created root password:&lt;br /&gt;
 $ mysql -u root -p&lt;br /&gt;
 Enter password: &lt;br /&gt;
 Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;
 Your MySQL connection id is 10&lt;br /&gt;
 Server version: 8.0.28 Source distribution&lt;br /&gt;
 &lt;br /&gt;
 Copyright (c) 2000, 2022, Oracle and/or its affiliates.&lt;br /&gt;
 &lt;br /&gt;
 Oracle is a registered trademark of Oracle Corporation and/or its&lt;br /&gt;
 affiliates. Other names may be trademarks of their respective&lt;br /&gt;
 owners.&lt;br /&gt;
 &lt;br /&gt;
 Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.&lt;br /&gt;
 &lt;br /&gt;
 mysql&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;mysql&amp;gt;  SELECT VERSION();&amp;lt;/code&amp;gt;&lt;br /&gt;
Sample Output:&lt;br /&gt;
&lt;br /&gt;
=== Create a User and Database: ===&lt;br /&gt;
To create a user and database in MariaDB/MySQL, use the commands below replacing where required:&lt;br /&gt;
 CREATE DATABASE sampledb;&lt;br /&gt;
 CREATE USER 'test_user'@'%' IDENTIFIED BY 'Passw0rd';&lt;br /&gt;
 GRANT ALL ON sampledb.* TO 'test_user'@'%' WITH GRANT OPTION;&lt;br /&gt;
 FLUSH PRIVILEGES;&lt;br /&gt;
After this, you will have a database named '''sampledb''' and a user '''test_user''' who can be accessed remotely created as swell.&lt;br /&gt;
&lt;br /&gt;
Check the available databases:&lt;br /&gt;
 &amp;lt;mysql&amp;gt; SHOW databases;&lt;br /&gt;
 +--------------------+&lt;br /&gt;
 | Database           |&lt;br /&gt;
 +--------------------+&lt;br /&gt;
 | information_schema |&lt;br /&gt;
 | mysql              |&lt;br /&gt;
 | performance_schema |&lt;br /&gt;
 | sampledb           |&lt;br /&gt;
 | sys                |&lt;br /&gt;
 +--------------------+&lt;br /&gt;
 5 rows in set (0.00 sec)&lt;br /&gt;
 &lt;br /&gt;
 mysql&amp;gt; &lt;br /&gt;
View users:&lt;br /&gt;
 &amp;lt;mysql&amp;gt; SELECT User, Host FROM mysql.user;&lt;br /&gt;
 +------------------+-----------+&lt;br /&gt;
 | User             | Host      |&lt;br /&gt;
 +------------------+-----------+&lt;br /&gt;
 | test_user        | %         |&lt;br /&gt;
 | mysql.infoschema | localhost |&lt;br /&gt;
 | mysql.session    | localhost |&lt;br /&gt;
 | mysql.sys        | localhost |&lt;br /&gt;
 | root             | localhost |&lt;br /&gt;
 +------------------+-----------+&lt;br /&gt;
 5 rows in set (0.00 sec)&lt;br /&gt;
 &lt;br /&gt;
 mysql&amp;gt; &lt;br /&gt;
To delete a user, use the command with the below syntax:&lt;br /&gt;
 &amp;lt;code&amp;gt;DROP USER 'username'@'host';&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create Tables ===&lt;br /&gt;
We can then create and insert data into a table. For example in the created table above:&lt;br /&gt;
 USE sampledb;&lt;br /&gt;
 &lt;br /&gt;
 CREATE TABLE playground (&lt;br /&gt;
     equip_id serial PRIMARY KEY,&lt;br /&gt;
     type varchar (50) NOT NULL,&lt;br /&gt;
     color varchar (25) NOT NULL,&lt;br /&gt;
     location varchar(25) check (location in ('north', 'south', 'west', 'east', 'northeast', 'southeast', 'southwest', 'northwest')),&lt;br /&gt;
     install_date date&lt;br /&gt;
 );&lt;br /&gt;
Insert the data into the preferred table:&lt;br /&gt;
 INSERT INTO playground (type, color, location, install_date) VALUES ('slide', 'blue', 'south', '2017-04-28');&lt;br /&gt;
 INSERT INTO playground (type, color, location, install_date) VALUES ('swing', 'yellow', 'northwest', '2018-08-16');&lt;br /&gt;
View the added data:&lt;br /&gt;
 &amp;lt;mysql&amp;gt; SELECT * FROM playground;&lt;br /&gt;
 +----------+-------+--------+-----------+--------------+&lt;br /&gt;
 | equip_id | type  | color  | location  | install_date |&lt;br /&gt;
 +----------+-------+--------+-----------+--------------+&lt;br /&gt;
 |        1 | slide | blue   | south     | 2017-04-28   |&lt;br /&gt;
 |        2 | swing | yellow | northwest | 2018-08-16   |&lt;br /&gt;
 +----------+-------+--------+-----------+--------------+&lt;br /&gt;
 2 rows in set (0.00 sec)&lt;br /&gt;
 &lt;br /&gt;
 mysql&amp;gt; exit&lt;/div&gt;</summary>
		<author><name>Erwin</name></author>
	</entry>
</feed>