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:15] – [Lancement du client] pascal | mariadb [2023/07/05 19:15] (Version actuelle) – [Suite] pascal | ||
|---|---|---|---|
| Ligne 8: | Ligne 8: | ||
| ==== Lancement du client ==== | ==== Lancement du client ==== | ||
| <code bash> | <code bash> | ||
| - | root@mysql:~# dpkg -l | grep mariadb | + | root:~# mariadb |
| - | ii libdbd-mariadb-perl | + | |
| - | ii libmariadb3: | + | |
| - | ii mariadb-client | + | |
| - | ii mariadb-client-core | + | |
| - | ii mariadb-common | + | |
| - | ii mariadb-plugin-provider-bzip2 | + | |
| - | ii mariadb-plugin-provider-lz4 | + | |
| - | ii mariadb-plugin-provider-lzma | + | |
| - | ii mariadb-plugin-provider-lzo | + | |
| - | ii mariadb-plugin-provider-snappy 1: | + | |
| - | ii mariadb-server | + | |
| - | ii mariadb-server-core | + | |
| - | root@mysql:~# mariadb | + | |
| Welcome to the MariaDB monitor. | Welcome to the MariaDB monitor. | ||
| Your MariaDB connection id is 31 | Your MariaDB connection id is 31 | ||
| Ligne 32: | Ligne 19: | ||
| MariaDB [(none)]> | MariaDB [(none)]> | ||
| </ | </ | ||
| - | ==== ... ==== | + | |
| + | ==== Liste des bases ==== | ||
| <code bash> | <code bash> | ||
| - | ~# mysql -u root -pazerty | + | MariaDB [(none)]> |
| - | Reading table information for completion of table and column names | + | +---------------------+ |
| - | You can turn off this feature to get a quicker startup with -A | + | | Database |
| + | +---------------------+ | ||
| + | | # | ||
| + | | information_schema | ||
| + | | mysql | | ||
| + | | performance_schema | ||
| + | | sys | | ||
| + | +---------------------+ | ||
| + | 5 rows in set (0,001 sec) | ||
| - | Welcome to the MySQL monitor. | + | MariaDB [(none)]> |
| - | Your MySQL connection id is 47 | + | </ |
| - | Server version: 5.5.44-0+deb8u1 | + | |
| - | Copyright | + | ==== Liste des utilisateurs ==== |
| + | <code bash> | ||
| + | MariaDB [(none)]> show databases; | ||
| + | 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) | ||
| - | Oracle is a registered trademark of Oracle Corporation and/or its | + | MariaDB [mysql]> |
| - | affiliates. Other names may be trademarks of their respective | + | </code> |
| - | owners. | + | ===== Configuration ===== |
| - | + | <code bash file=/ | |
| - | Type ' | + | [mysqld] |
| - | + | # Instead of skip-networking the default is now to listen only on | |
| - | mysql> select host,user from user; | + | # localhost which is more compatible and is not less secure. |
| - | +-----------------+------------------+ | + | bind-address |
| - | | host | user | | + | |
| - | +-----------------+------------------+ | + | |
| - | | 127.0.0.1 | root | | + | |
| - | | ::1 | root | | + | |
| - | | localhost | + | |
| - | | localhost | + | |
| - | +-----------------+------------------+ | + | |
| - | 4 rows in set (0.00 sec) | + | |
| - | + | ||
| - | mysql> quit | + | |
| - | Bye | + | |
| - | ~# | + | |
| </ | </ | ||
| - | 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.1688469300.txt.gz · Dernière modification : 2023/07/04 11:15 de pascal