Git Product home page Git Product logo

rda_task_10_monitor_error_log's Introduction

Monitor Error Log

Troubleshooting the database server can be frustrating if you don't know how to do it, and the best way to learn is to practice! In this task, you will monitor the MySQL server error log and fix the configuration issue.

Prerequisites

  1. Install and configure a MySQL database server on a Virtual Machine.
  2. Fork this repository.

Requirements

Here, you will need to work with your database configuration on the virtual machine you prepared during the lab setup:

  1. Rename your existing MySQL database config so the server won't pick it up:
sudo mv /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/mysql.conf.d/mysqld.cnf.backup
  1. Copy this repository's configuration file (task.cnf) to your database server. Move the file to the MySQL configuration folder (/etc/mysql/mysql.conf.d), and make sure to configure permissions on the new config file so MySQL service will be able to read it:
sudo chmod 755 /etc/mysql/mysql.conf.d/task.cnf
  1. Restart the MySQL service using the following command:
sudo systemctl restart mysql
  1. Connect to the server using any MySQL client, and run any SELECT query on any of the databases you have on the server. For example, if you were repeating the commands from the module videos, you should have the company database with the Employees table:
use company; 
select * from Employees;
  1. Analyse the error log and identify the error on the database server.
  2. Review the config file and fix the issue. Submit the edited version of the config file in a PR for review.

Hint: the task configuration file has a couple of configuration options, which are duplicated โ€” one variant of the config option is uncommented, and one is commented. For example:

user		= mysql
# user		= root

The configuration option you need to fix belongs to those configuration options. To fix the issue, you need to comment on the value you think is causing the issue and uncomment the correct value.

rda_task_10_monitor_error_log's People

Contributors

id27182 avatar alenatovstukha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.