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:21] – [Liste des bases] pascalmariadb [2023/07/05 19:15] (Version actuelle) – [Suite] pascal
Ligne 40: Ligne 40:
 <code bash> <code bash>
 MariaDB [(none)]> show databases; MariaDB [(none)]> show databases;
-+---------------------+ +MariaDB [mysql]> use mysql; 
-Database            +Database changed 
-+---------------------+ +MariaDB [mysql]> select Host, User, Password from user; 
-#mysql50#lost+found | ++-----------+-------------+----------+ 
-information_schema  +Host      | User        | Password 
-mysql               | ++-----------+-------------+----------+ 
-performance_schema  | +localhost mariadb.sys          
-sys                 +localhost root        invalid  | 
-+---------------------+ +localhost | mysql       | invalid  
-rows in set (0,001 sec)++-----------+-------------+----------+ 
 +rows in set (0,002 sec)
  
-MariaDB [(none)]> +MariaDB [mysql]> 
 </code> </code>
-==== ... ==== +===== Configuration ===== 
-<code bash> +<code bash file=/etc/mysql/mariadb.conf.d/99-local.cnf
-~mysql -u root -pazerty mysql +[mysqld] 
-Reading table information for completion of table and column names +Instead of skip-networking the default is now to listen only on 
-You can turn off this feature to get a quicker startup with -+# localhost which is more compatible and is not less secure
- +bind-address            = 10.1.40.1
-Welcome to the MySQL monitor.  Commands end with ; or \g. +
-Your MySQL connection id is 47 +
-Server version: 5.5.44-0+deb8u1 (Debian) +
- +
-Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. +
- +
-Oracle is a registered trademark of Oracle Corporation and/or its +
-affiliatesOther names may be trademarks of their respective +
-owners. +
- +
-Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. +
- +
-mysql> select host,user from user; +
-+-----------------+------------------+ +
-| 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.1688469719.txt.gz · Dernière modification : 2023/07/04 11:21 de pascal