Resetting the root password for MySQL8

This article explains how to set the initial root password of MySQL 8.0 in CentOS7 and how to reset the root password after forgetting it. 1. First login If MySQL is just installed, it will generate a random password in the log file by default, we can use it to login and reset the password. 1 2 3 4 $ sudo grep 'temporary password' /var/log/mysqld.log 2019-11-22T16:40:10.133730Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: >KG6Ybt3%lgo $ mysql -u root -p Enter password: To reset the password you can use the following command.

Using ntfsfix to solve the problem of not being able to mount NTFS drives under Linux

Use ntfsfix to solve the problem of not being able to mount NTFS hard disk under Linux, mainly by the problem of $MFT file of hard disk partition, you can use chkdsk command under windows or use ntfsfix under Linux to fix it. First the failure details. 1 2 3 4 5 6 7 8 9 10 $ sudo mount /dev/sda1 $MFTMirr does not match $MFT (record 3). Failed to mount '/dev/sda1': Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware.

Managing Jenkins build nodes with Kubernetes' built-in PodTemplate

Jenkins integrates well with Kubernetes, whether it’s a controller or a build node (agent) running as a Pod on Kubernetes. Anyone familiar with Jenkins knows that Jenkins supports multiple types of build nodes, such as fixed configuration and dynamic configuration. The way nodes connect to the controller includes JNLP, SSH, and so on. For those who are already fully embracing container technology, most of them use build nodes by connecting to Kubernetes clusters and dynamically starting and destroying Pods.

Understanding the ECMAScript Advanced Syntax Compilation and Helper Handling Scheme from the tsconfig parameter importHelpers

1 Introduction to TypepScript Syntax Compilation and Helper Functions Using TypepScript’s built-in tsc tool, you can translate ts source files into standard JavaScript code files. The configuration file tsconfig.json can be used to configure the specific scheme of tsc compilation. The tsc compilation parameter target specifies the language standard version of the output, so in practice it can also be used as a tool to translate higher versions of ECMAScript source code to lower versions.

React: useNavigate() may be used only in the context of a Router component

When we try to use the useNavigate hook outside the Router context of a react router, we get the warning “useNavigate() may be used only in the context of a Router component”. To fix this issue, you can only use the useNavigate hook in the Router context. Here is an example of wrapping a React application in a Router in the index.js file. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // index.

Caddy, an out-of-the-box web server

As we all know, the Web server is an indispensable basic service for Web development and is often used in development. Familiar open source Web servers are the well-known Apache, the powerful Nginx. The open source project we are going to introduce today is written in Go the up-and-coming “: Caddy It has a download without installation can be used, zero configuration to achieve HTTPS and other characteristics, so in

Quickly build new clusters on Kubernetes with Crossplane and VCluster

Crossplane is an open source Kubernetes plugin that solves the problem of provisioning cloud resources by extending the Kubernetes API. When using Crossplane, you can define declaratively what cloud resources need to be created for your application to work properly, without writing any code. The definition of these cloud resources can be done directly by creating the associated CRD objects, which can be thought of as a cloud-native version of Terraform.

Talking about gRPC's Trailers design

I’ve “critiqued” gRPC many times, and one of the most mysterious aspects of its complex design is its reliance on the trailers header. There is basically no information on the web about why gRPC uses trailers to pass status codes. I recently read an article by Carl Why Does gRPC Insist on Trailers?. Carl was a member of the gRPC R&D team and he Carl was part of the gRPC development team, and in this article he details the vision for designing gRPC and the process that led to it getting out of control.

Enable kvm nested virtualization on Linux

kvm supports nested virtualization, which means that virtual machines can be created within virtual machines. This article focuses on how to turn on kvm nested virtualization in CentOS 7 with Intel processors. kvm is mainly implemented through the kernel module, so we can check if kvm nested virtualization is enabled on our system by simply executing the following command and know if it is supported based on the output. 1 2 $ cat /sys/module/kvm_intel/parameters/nested N If not, we need to create a new kvm-nested.

The Sendfile command in nginx and how it works

This article explains the sendfile command in the http module in nginx and how it works. 1. Introduction to sendfile() The http module of nginx has a sendfile directive, which is on by default. The official website documentation explains it as follows. Enables or disables the use of sendfile(). Starting from nginx 0.8.12 and FreeBSD 5.2.1, aio can be used to pre-load data for sendfile(): 1 2 3 4 5 location /video/ { sendfile on; tcp_nopush on; aio on; } In this configuration, sendfile() is called with the SF_NODISKIO flag which causes it not to block on disk I/O, but, instead, report back that the data are not in memory.