Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
elearning:workbooks:tomcat:tc03 [2023/12/05 08:55] – admin | elearning:workbooks:tomcat:tc03 [2023/12/05 09:11] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1003: | Ligne 1003: | ||
< | < | ||
- | CREATE DATABASE `tomcat`; | ||
USE `tomcat`; | USE `tomcat`; | ||
CREATE TABLE `tomcat`.`AccessLog` ( | CREATE TABLE `tomcat`.`AccessLog` ( | ||
Ligne 1026: | Ligne 1025: | ||
[root@centos7 bin]# vi tomcat.sql | [root@centos7 bin]# vi tomcat.sql | ||
[root@centos7 bin]# cat tomcat.sql | [root@centos7 bin]# cat tomcat.sql | ||
- | CREATE DATABASE `tomcat`; | ||
USE `tomcat`; | USE `tomcat`; | ||
CREATE TABLE `tomcat`.`AccessLog` ( | CREATE TABLE `tomcat`.`AccessLog` ( | ||
Ligne 1044: | Ligne 1042: | ||
</ | </ | ||
- | Ce fichier contient les commandes SQL nécessaires pour créer la base de données MariaDB | + | Ce fichier contient les commandes SQL nécessaires pour créer la table **AccessLog** |
+ | |||
+ | Créez donc la base de données **tomcat** : | ||
+ | |||
+ | < | ||
+ | [root@centos7 bin]# mysql -u root -p | ||
+ | Enter password: | ||
+ | Welcome to the MariaDB monitor. | ||
+ | Your MariaDB connection id is 6 | ||
+ | Server version: 5.5.64-MariaDB MariaDB Server | ||
+ | |||
+ | Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. | ||
+ | |||
+ | Type ' | ||
+ | |||
+ | MariaDB [(none)]> | ||
+ | ... | ||
+ | MariaDB [(none)]> | ||
+ | </ | ||
+ | |||
+ | Injectez donc les commandes SQL dans MariaDB : | ||
< | < |