Outils pour utilisateurs

Outils du site


mariadb

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
mariadb [2023/07/04 11:15] – [Lancement du client] pascalmariadb [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            1.22-1+b1                       amd64        Perl5 database interface to the MariaDB/MySQL databases +
-ii  libmariadb3:amd64              1:10.11.3-1                     amd64        MariaDB database client library +
-ii  mariadb-client                 1:10.11.3-1                     amd64        MariaDB database client binaries +
-ii  mariadb-client-core            1:10.11.3-1                     amd64        MariaDB database core client binaries +
-ii  mariadb-common                 1:10.11.3-1                     all          MariaDB common configuration files +
-ii  mariadb-plugin-provider-bzip2  1:10.11.3-1                     amd64        BZip2 compression support in the server and storage engines +
-ii  mariadb-plugin-provider-lz4    1:10.11.3-1                     amd64        LZ4 compression support in the server and storage engines +
-ii  mariadb-plugin-provider-lzma   1:10.11.3-1                     amd64        LZMA compression support in the server and storage engines +
-ii  mariadb-plugin-provider-lzo    1:10.11.3-1                     amd64        LZO compression support in the server and storage engines +
-ii  mariadb-plugin-provider-snappy 1:10.11.3-1                     amd64        Snappy compression support in the server and storage engines +
-ii  mariadb-server                 1:10.11.3-1                     amd64        MariaDB database server binaries +
-ii  mariadb-server-core            1:10.11.3-1                     amd64        MariaDB database core server files +
-root@mysql:~# mariadb+
 Welcome to the MariaDB monitor.  Commands end with ; or \g. Welcome to the MariaDB monitor.  Commands end with ; or \g.
 Your MariaDB connection id is 31 Your MariaDB connection id is 31
Ligne 32: Ligne 19:
 MariaDB [(none)]>  MariaDB [(none)]> 
 </code> </code>
-==== ... ====+ 
 +==== Liste des bases ====
 <code bash> <code bash>
-~# mysql -u root -pazerty mysql +MariaDB [(none)]> show databases; 
-Reading table information for completion of table and column names ++---------------------+ 
-You can turn off this feature to get a quicker startup with -A+| Database            | 
 ++---------------------+ 
 +| #mysql50#lost+found | 
 +| information_schema 
 +mysql               | 
 +| performance_schema  | 
 +| sys                 | 
 ++---------------------+ 
 +5 rows in set (0,001 sec)
  
-Welcome to the MySQL monitor.  Commands end with ; or \g. +MariaDB [(none)]>  
-Your MySQL connection id is 47 +</code>
-Server version: 5.5.44-0+deb8u1 (Debian)+
  
-Copyright (c20002015Oracle and/or its affiliates. All rights reserved.+==== Liste des utilisateurs ==== 
 +<code bash> 
 +MariaDB [(none)]> show databases; 
 +MariaDB [mysql]> use mysql; 
 +Database changed 
 +MariaDB [mysql]> select HostUserPassword 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=/etc/mysql/mariadb.conf.d/99-local.cnf> 
-Type 'help;' or '\h' for helpType '\c' to clear the current input statement+[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            = 10.1.40.1
-| host            | user             | +
-+-----------------+------------------+ +
-| 127.0.0.1       | root             | +
-| ::1             | root             | +
-| localhost       | debian-sys-maint | +
-| localhost       | root             | +
-+-----------------+------------------+ +
-4 rows in set (0.00 sec) +
- +
-mysql> quit +
-Bye +
-~# +
 </code> </code>
-Noter l'absence de blanc entre -p et le mot de passe.+Object, autoriser la connexion depuis les autres machines du réseau local.
  
-"mysql" est le nom de la base de données interne à mySQL.+===== Suite ===== 
 +  * [[mariadb_user|gestion des utilisateurs]]  
 +  * [[mysqltuner_optimisation|Optimisation de mariaDB]] 
 +  * [[mariadb_sécurisation|Sécurisation de mariaDB]]
mariadb.1688469300.txt.gz · Dernière modification : 2023/07/04 11:15 de pascal