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 19: | 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.1688469354.txt.gz · Dernière modification : 2023/07/04 11:15 de pascal