<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://knowledge.pinon-hebert.fr/mediawiki/index.php?action=history&amp;feed=atom&amp;title=MariaDB_sur_Raspberry_PI</id>
	<title>MariaDB sur Raspberry PI - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?action=history&amp;feed=atom&amp;title=MariaDB_sur_Raspberry_PI"/>
	<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=MariaDB_sur_Raspberry_PI&amp;action=history"/>
	<updated>2026-05-19T20:43:29Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=MariaDB_sur_Raspberry_PI&amp;diff=1034&amp;oldid=prev</id>
		<title>Jpinon le 16 mars 2025 à 20:46</title>
		<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=MariaDB_sur_Raspberry_PI&amp;diff=1034&amp;oldid=prev"/>
		<updated>2025-03-16T20:46:35Z</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;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 16 mars 2025 à 20:46&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-l132&quot;&gt;Ligne 132 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 132 :&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 [(none)]&amp;gt;&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 [(none)]&amp;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;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; 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;&amp;lt;/syntaxhighlight&amp;gt;&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;&amp;lt;/syntaxhighlight&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Pour le reste, une page parle de [[MariaDB|l&#039;utilisation]].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jpinon</name></author>
	</entry>
	<entry>
		<id>https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=MariaDB_sur_Raspberry_PI&amp;diff=1032&amp;oldid=prev</id>
		<title>Jpinon : Page créée avec « Je me suis servi de la page : https://raspberrytips.fr/installer-mysql-raspberry-pi-mariadb/ pour écrire cette page.  === Installation === On reste dans le classique :&lt;syntaxhighlight lang=&quot;bash&quot;&gt; sudo apt update sudo apt upgrade sudo apt install mariadb-server &lt;/syntaxhighlight&gt;Et c&#039;est fait!  En revanche si on tente d&#039;utiliser la base:&lt;syntaxhighlight lang=&quot;text&quot;&gt; mariadb ERROR 1698 (28000): Access denied for user &#039;admin&#039;@&#039;localhost&#039;  &lt;/syntaxhighlight&gt;Aucun u... »</title>
		<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=MariaDB_sur_Raspberry_PI&amp;diff=1032&amp;oldid=prev"/>
		<updated>2025-03-16T20:43:59Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « Je me suis servi de la page : https://raspberrytips.fr/installer-mysql-raspberry-pi-mariadb/ pour écrire cette page.  === Installation === On reste dans le classique :&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; sudo apt update sudo apt upgrade sudo apt install mariadb-server &amp;lt;/syntaxhighlight&amp;gt;Et c&amp;#039;est fait!  En revanche si on tente d&amp;#039;utiliser la base:&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt; mariadb ERROR 1698 (28000): Access denied for user &amp;#039;admin&amp;#039;@&amp;#039;localhost&amp;#039;  &amp;lt;/syntaxhighlight&amp;gt;Aucun u... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Je me suis servi de la page : https://raspberrytips.fr/installer-mysql-raspberry-pi-mariadb/ pour écrire cette page.&lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
On reste dans le classique :&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt upgrade&lt;br /&gt;
sudo apt install mariadb-server&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Et c&amp;#039;est fait!&lt;br /&gt;
&lt;br /&gt;
En revanche si on tente d&amp;#039;utiliser la base:&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
mariadb&lt;br /&gt;
ERROR 1698 (28000): Access denied for user &amp;#039;admin&amp;#039;@&amp;#039;localhost&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Aucun utilisateur n&amp;#039;existe donc... on ne peut pas l&amp;#039;utiliser. &lt;br /&gt;
&lt;br /&gt;
On remarque qu&amp;#039;en tant que root, ça marche :&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
sudo mariadb&lt;br /&gt;
Welcome to the MariaDB monitor.  Commands end with ; or \g.&lt;br /&gt;
Your MariaDB connection id is 32&lt;br /&gt;
Server version: 10.11.11-MariaDB-0+deb12u1 Debian 12&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.&lt;br /&gt;
&lt;br /&gt;
Type &amp;#039;help;&amp;#039; or &amp;#039;\h&amp;#039; for help. Type &amp;#039;\c&amp;#039; to clear the current input statement.&lt;br /&gt;
&lt;br /&gt;
MariaDB [(none)]&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Ca marche mais c&amp;#039;est pas comme ça que ça devrait être pour avoir une sécurité correcte!&lt;br /&gt;
&lt;br /&gt;
=== Configuration ===&lt;br /&gt;
On lance la sécurisation par : &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo mysql_secure_installation&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;et un se laisse guider:&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&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&amp;#039;ll need the current&lt;br /&gt;
password for the root user. If you&amp;#039;ve just installed MariaDB, and&lt;br /&gt;
haven&amp;#039;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):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;On ne veut pas de mot de passe root, on réponds par &amp;lt;Enter&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&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 &amp;#039;n&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Switch to unix_socket authentication [Y/n]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Répondre &amp;#039;Y&amp;#039; pour restreindre l&amp;#039;authentification pas les &amp;quot;socket unix&amp;quot;.&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
Enabled successfully!&lt;br /&gt;
Reloading privilege tables..&lt;br /&gt;
 ... Success!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You already have your root account protected, so you can safely answer &amp;#039;n&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Change the root password? [Y/n]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Répondre oui &amp;#039;Y&amp;#039; pour mettre un mot de passe root. &amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
New password:&lt;br /&gt;
Re-enter new password:&lt;br /&gt;
Password updated successfully!&lt;br /&gt;
Reloading privilege tables..&lt;br /&gt;
 ... Success!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, a MariaDB installation has an anonymous user, allowing anyone&lt;br /&gt;
to log into MariaDB without having to have a user account created for&lt;br /&gt;
them.  This is intended only for testing, and to make the installation&lt;br /&gt;
go a bit smoother.  You should remove them before moving into a&lt;br /&gt;
production environment.&lt;br /&gt;
&lt;br /&gt;
Remove anonymous users? [Y/n]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Oui bien sur il ne faut pas autoriser les accès anonymes.  (&amp;#039;Y&amp;#039;)&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
 ... Success!&lt;br /&gt;
&lt;br /&gt;
Normally, root should only be allowed to connect from &amp;#039;localhost&amp;#039;.  This&lt;br /&gt;
ensures that someone cannot guess at the root password from the network.&lt;br /&gt;
&lt;br /&gt;
Disallow root login remotely? [Y/n]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Encore une fois c&amp;#039;est OUI on ne veut pas autoriser l&amp;#039;accès root distant.&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
 ... Success!&lt;br /&gt;
&lt;br /&gt;
By default, MariaDB comes with a database named &amp;#039;test&amp;#039; that anyone can&lt;br /&gt;
access.  This is also intended only for testing, and should be removed&lt;br /&gt;
before moving into a production environment.&lt;br /&gt;
&lt;br /&gt;
Remove test database and access to it? [Y/n]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Oui bien sûr on ne veut pas de la base de test. Elle ne nous servira à rien. (&amp;#039;Y&amp;#039;)&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
 - Dropping test database...&lt;br /&gt;
 ... Success!&lt;br /&gt;
 - Removing privileges on test database...&lt;br /&gt;
 ... Success!&lt;br /&gt;
&lt;br /&gt;
Reloading the privilege tables will ensure that all changes made so far&lt;br /&gt;
will take effect immediately.&lt;br /&gt;
&lt;br /&gt;
Reload privilege tables now? [Y/n]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Effectivement il est tant de recharger la table des privilèges pour rendre nos modifications effectives. (&amp;#039;Y&amp;#039;)&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
 ... Success!&lt;br /&gt;
&lt;br /&gt;
Cleaning up...&lt;br /&gt;
&lt;br /&gt;
All done!  If you&amp;#039;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;
$&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;C&amp;#039;est terminé.&lt;br /&gt;
&lt;br /&gt;
=== Connexion ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mysql -uroot -p&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Mysql (mariadb) va nous demander le mot de passe entré plus haut.&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
Enter password:&lt;br /&gt;
Welcome to the MariaDB monitor.  Commands end with ; or \g.&lt;br /&gt;
Your MariaDB connection id is 44&lt;br /&gt;
Server version: 10.11.11-MariaDB-0+deb12u1 Debian 12&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.&lt;br /&gt;
&lt;br /&gt;
Type &amp;#039;help;&amp;#039; or &amp;#039;\h&amp;#039; for help. Type &amp;#039;\c&amp;#039; to clear the current input statement.&lt;br /&gt;
&lt;br /&gt;
MariaDB [(none)]&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jpinon</name></author>
	</entry>
</feed>