Dépôt pour la base de données mysqld
508
docker run -d -p 3306:3306 --name crtinformatique_mysqld -e MYSQL_ROOT_PASSWORD=supersecret crtinformatique/mysqld:latest
docker exec -it crtinformatique/mysqld bash
root@f4021e67e976:/# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 8.0.15 MySQL Community Server - GPL
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| business |
| documentary |
| exploit |
| information_schema |
| module |
| mysql |
| performance_schema |
| portal |
| qualification |
| reporting |
| services |
| source |
| tickets |
| tmp_data |
+--------------------+
14 rows in set (0.005 sec)
MariaDB [(none)]>
MariaDB [(none)]> SELECT user,host from mysql.user;
+--------+------------------------------+
| user | host |
+--------+------------------------------+
| portal | 127.0.0.1 |
| root | 127.0.0.1 |
| | incidents.paris.tv5monde.org |
| root | incidents.paris.tv5monde.org |
| | localhost |
| portal | localhost |
| root | localhost |
+--------+------------------------------+
7 rows in set (0.001 sec)
MariaDB [(none)]>
Content type
Image
Digest
Size
142.6 MB
Last updated
over 7 years ago
docker pull crtinformatique/mysqld