mariadb
                Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| mariadb [2023/07/04 11:10] – [Commande] pascal | mariadb [2023/07/05 19:15] (Version actuelle) – [Suite] pascal | ||
|---|---|---|---|
| Ligne 6: | Ligne 6: | ||
| La version installée est la 1: | La version installée est la 1: | ||
| ===== Contrôle ===== | ===== Contrôle ===== | ||
| + | ==== Lancement du client ==== | ||
| <code bash> | <code bash> | ||
| - | ~# mysql -u root -pazerty mysql | + | root:~# mariadb | 
| - | Reading table information for completion of table and column names | + | Welcome | 
| - | You can turn off this feature | + | Your MariaDB connection id is 31 | 
| + | Server version: 10.11.3-MariaDB-1 Debian 12 | ||
| - | Welcome to the MySQL monitor. | + | Copyright | 
| - | Your MySQL connection id is 47 | + | |
| - | Server version: 5.5.44-0+deb8u1 | + | |
| - | Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. | + | Type ' | 
| - | Oracle is a registered trademark of Oracle Corporation and/or its | + | MariaDB [(none)]> | 
| - | affiliates. Other names may be trademarks of their respective | + | </code> | 
| - | owners. | + | |
| - | Type 'help;' or ' | + | ==== Liste des bases ==== | 
| + | <code bash> | ||
| + | MariaDB [(none)]> | ||
| + | +---------------------+ | ||
| + | | Database | ||
| + | +---------------------+ | ||
| + | | # | ||
| + | | information_schema | ||
| + | | mysql | | ||
| + | | performance_schema | ||
| + | | sys | | ||
| + | +---------------------+ | ||
| + | 5 rows in set (0,001 sec) | ||
| - | mysql> select host,user from user; | + | MariaDB [(none)]> | 
| - | +-----------------+------------------+ | + | </ | 
| - | | host | user | | + | |
| - | +-----------------+------------------+ | + | |
| - | | 127.0.0.1 | + | |
| - | | ::1 | root | | + | |
| - | | localhost | + | |
| - | | localhost | + | |
| - | +-----------------+------------------+ | + | |
| - | 4 rows in set (0.00 sec) | + | |
| - | mysql> | + | ==== Liste des utilisateurs ==== | 
| - | Bye | + | <code bash> | 
| - | ~# | + | MariaDB [(none)]> | 
| + | MariaDB [mysql]> use mysql; | ||
| + | Database changed | ||
| + | MariaDB [mysql]> select Host, User, Password from user; | ||
| + | +-----------+-------------+----------+ | ||
| + | | Host | User | Password | | ||
| + | +-----------+-------------+----------+ | ||
| + | | localhost | mariadb.sys | | | ||
| + | | localhost | root        | invalid | ||
| + | | localhost | mysql       | invalid | ||
| + | +-----------+-------------+----------+ | ||
| + | 3 rows in set (0,002 sec) | ||
| + | |||
| + | MariaDB [mysql]> | ||
| + | </ | ||
| + | ===== Configuration ===== | ||
| + | <code bash file=/ | ||
| + | [mysqld] | ||
| + | # Instead of skip-networking the default is now to listen only on | ||
| + | # localhost which is more compatible and is not less secure. | ||
| + | bind-address | ||
| </ | </ | ||
| - | Noter l' | + | Object, autoriser la connexion depuis les autres machines du réseau local. | 
| - | " | + | ===== Suite ===== | 
| + | * [[mariadb_user|gestion des utilisateurs]] | ||
| + | * [[mysqltuner_optimisation|Optimisation | ||
| + | * [[mariadb_sécurisation|Sécurisation | ||
mariadb.1688469042.txt.gz · Dernière modification : 2023/07/04 11:10 de pascal
                
                