ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

RHCE EX300 Exam: Configure a database on Red Hat Enterprise Linux

Автор: Business Server Solutions

Загружено: 2018-12-09

Просмотров: 1742

Описание: RHCE EX300 Exam: Configure a database on Red Hat Enterprise Linux.
---
Our given task is:

Configure a database.

Create a MariaDB database named employees on system1 such that the following conditions exist:

The database should contain the contents of the database dump from http://rhgh.domain9.example.com/mater...
The database should be accessible from localhost only.
Other than the root user this database only allows queries from the user luigi. This user should have the password wakennym.
The root user should have the password wakennym and must not be allowed to log in without using a password.
---
First we will install mariadb and mariadb-client group of packages:
yum groupinstall mariadb mariadb-client

Enable MariaDB to start automatically after reboot:
systemctl enable mariadb

Verify if MariaDB is configured to start automatically after reboot:
systemctl is-enabled mariadb

Start MariaDB:
systemctl start mariadb

Check status of MariaDB:
systemctl status mariadb

Verify that MariaDB is listening on all interfaces:
ss -tulpn | grep mysql

Part of this RHCE task is that the database should be accessible from localhost only.
So we enable the skip networking directive:
vi /etc/my.cnf
Add line "skip-networking=1" to [mysqld] section:
skip-networking=1

Restart MariaDB:
systemctl restart mariadb

Verify status of MariaDB:
systemctl status mariadb

Verify that MariaDB is not listening on any interface:
ss -tulpn | grep mysql

Above command shouldn't return anything.

Secure MariaDB service using the mysql_secure_installation tool. Set the root password to wakennym, and answer yes to all other questions.
mysql_secure_installation

Enter current password for root (enter for none):

We haven't set root password yet - so we press enter here.

Set root password? [Y/n]

It is part of this RHCE task that the root user should have the password wakennym and must not be allowed to log in without using a password. So press lower or upper case Y for yes.

Type a new password which should be wakennym here.
Re-enter new password.

Remove anonymous users? [Y/n]

Our RHCE task says that other than the root user this database only allows queries from the user luigi. So we press Y for yes now.

Disallow root login remotely? [Y/n]

Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. So we press Y for yes here as well as this one is important security hardening.
And also our RHCE task says that the database should be accessible from localhost only anyway.

We will answer yes also to our last two questions.

Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y

Connect to the MariaDB database as user root using mysql command:

mysql -u root -p

mysql: is a client to connect to the MariaDB database server.
-u: is option to specify the username for this connection.
root: username for this connection.
-p: is option to prompt for password.

Our RHCE task is to create MariaDB database named employees on system1.
So we will create it using command:
CREATE DATABASE employees;

We will verify if the database employees has been created successfully with command:
SHOW DATABASES;

Our next task is to create user luigi and set password wakennym for him:
CREATE USER luigi@localhost IDENTIFIED BY 'wakennym';

Database should allow queries from the user luigi:
GRANT SELECT ON employees.* TO luigi@localhost;

Now we need to reload privileges using 'flush privileges' command:
FLUSH PRIVILEGES;

Display privileges that are assigned to the user luigi:
SHOW GRANTS FOR luigi@localhost;

Disconnect from the MariaDB database and exit mysql client:
EXIT;

Connect to the MariaDB database as user luigi:
mysql -u luigi -p

Connect to the database employees to confirm that user luigi can use it:
USE employees;

Disconnect from the MariaDB database and exit mysql client:
EXIT;

The database should contain the contents of the database dump from http://rhgh.domain9.example.com/mater...

First install wget utility to download employees.mdb file:
yum install wget

Download employees.mdb file:
wget http://rhgh.domain9.example.com/mater...

Reload employees.mdb dump file which was written by mysqldump:
mysql -u root -p employees "lower than" employees.mdb

Verify if employees database was restored successfully and if user luigi can see and query all tables.
Connect as user luigi:
mysql -u luigi -p

Use the employees database:
USE employees;

List tables:
SHOW TABLES;

Query data from the employees table:
SELECT * FROM employees;

Disconnect from the MariaDB database:
EXIT;

Please remember that on your RHCE exam SELinux must be set to enforcing mode and firewall must be running.
Please also remember that all your RHCE tasks will be graded after the reboot.
---
Employees Sample Database:
https://dev.mysql.com/doc/employee/en/
https://github.com/datacharmer/test_db

Query a database video tutorial:
   • RHCE EX300 Exam: Query a database on Red H...  

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
RHCE EX300 Exam: Configure a database on Red Hat Enterprise Linux

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Как Ubuntu Предала Linux - Вся Правда о Взлёте и Падении Canonical

Как Ubuntu Предала Linux - Вся Правда о Взлёте и Падении Canonical

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Сисадмины больше не нужны? Gemini настраивает Linux сервер и устанавливает cтек N8N. ЭТО ЗАКОННО?

Разжёванный курс по Linux для чайников.  Часть 1

Разжёванный курс по Linux для чайников. Часть 1

RHCE EX300 Exam: Query a database on Red Hat Enterprise Linux

RHCE EX300 Exam: Query a database on Red Hat Enterprise Linux

Почему работает теория шести рукопожатий? [Veritasium]

Почему работает теория шести рукопожатий? [Veritasium]

RHCE EX300 exam: Configure an iSCSI target on Red Hat Enterprise Linux

RHCE EX300 exam: Configure an iSCSI target on Red Hat Enterprise Linux

Music for Men Who Stay Silent | Gentleman Dark Blues

Music for Men Who Stay Silent | Gentleman Dark Blues

Kubernetes — Простым Языком на Понятном Примере

Kubernetes — Простым Языком на Понятном Примере

Перестань Платить! ИИ Видео-Генераторы о которых ты НЕ знаешь

Перестань Платить! ИИ Видео-Генераторы о которых ты НЕ знаешь

H2D — не самый дорогой Bambulab

H2D — не самый дорогой Bambulab

RHCE EX300 exam: Configure an iSCSI initiator on Red Hat Enterprise Linux

RHCE EX300 exam: Configure an iSCSI initiator on Red Hat Enterprise Linux

Why Cold Drinks Were Lethal before 1914

Why Cold Drinks Were Lethal before 1914

Структура файлов и каталогов в Linux

Структура файлов и каталогов в Linux

🌹 Deep House Obsession 24/7 • Emotional Chill House Live Radio | Rose Afterhours

🌹 Deep House Obsession 24/7 • Emotional Chill House Live Radio | Rose Afterhours

Изучите основы Linux — Часть 2

Изучите основы Linux — Часть 2

Компьютерные термины простыми словами — что значат и как запомнить

Компьютерные термины простыми словами — что значат и как запомнить

I Bought 12 Broken Ryzen CPUs for $10 Each - Can I Profit?

I Bought 12 Broken Ryzen CPUs for $10 Each - Can I Profit?

Typst: Современная замена Word и LaTeX, которую ждали 40 лет

Typst: Современная замена Word и LaTeX, которую ждали 40 лет

7 потрясающих инструментов CLI, которые вам стоит попробовать

7 потрясающих инструментов CLI, которые вам стоит попробовать

Изучите Microsoft Active Directory (ADDS) за 30 минут

Изучите Microsoft Active Directory (ADDS) за 30 минут

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]