Outils pour utilisateurs

Outils du site


mariadb

MariaDB

Commande

~# apt-get install mariadb-server mariadb-client

La version installée est la 1:10.11.3-1.

Contrôle

Lancement du client

root:~# mariadb
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 31
Server version: 10.11.3-MariaDB-1 Debian 12
 
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
MariaDB [(none)]> 

Liste des bases

MariaDB [(none)]> show databases;
+---------------------+
| Database            |
+---------------------+
| #mysql50#lost+found |
| information_schema  |
| mysql               |
| performance_schema  |
| sys                 |
+---------------------+
5 rows in set (0,001 sec)
 
MariaDB [(none)]> 

Liste des utilisateurs

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)
 
MariaDB [mysql]> 

Configuration

file=/etc/mysql/mariadb.conf.d/99-local.cnf
[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            = 10.1.40.1

Object, autoriser la connexion depuis les autres machines du réseau local.

Suite

mariadb.txt · Dernière modification : 2023/07/05 19:15 de pascal