Home Database Mysql Tutorial 状态文件和日志文件_MySQL

状态文件和日志文件_MySQL

Jun 01, 2016 pm 01:57 PM
Host

    提示:在MySQL数据目录中还包含着许多状态文件和日志文件,这些文件的文件名都是以主机名加上相关后缀来命名的。


在MySQL数据目录中还包含着许多状态文件和日志文件,这些文件的文件名都是以主机名加上相关后缀来命名的。

下面是这些文件的一个说明列表:

Table 3.1. 状态文件和日志文件

文件类型 默认名 文件内容
进程ID文件 hostname.pid MySQL服务器进程的ID
常规查询日志 hostname.log 连接/断开连接事件和查询信息
慢查询日志 hostname-slow.log 记录查询时间很长的命令信息
变更日志 hostname.nnn 创建或修改数据表结构和内容的查询命令信息
二进制变更日志 hostname-bin.nnn 创建或修改数据表结构和内容的查询命令的二进制表示法
二进制变更日志的索引文件 hostname-bin.index 使用中的“二进制变更日志”列表
错误日志 hostname.err 记录“启动/关闭”事件和异常情况

变更日志和二进制变更日志主要用于MySQL数据库服务器的崩溃恢复中,由于变更日志记录了数据库的所有变更操作,所以可以进行事件重放。具体操作请参考相关数据库备份恢复章节。对于变更日志,我们可用--log-long-format选项来让它以扩展方式记录有关事件。扩展方式可记录谁发出查询和什么时候发出查询的信息。可使我们更好地掌握客户端的操作情况。日志记录着查询命令的所有操作,里面可能会有一些敏感信息。所以我们要确保日志文件的安全。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is the relationship between the domain name of the host and the IP address of the host? What is the relationship between the domain name of the host and the IP address of the host? Jan 14, 2021 pm 06:02 PM

The relationship between the host's domain name and the host's IP address is: one IP address corresponds to multiple domain names. The IP address uses a digital form to identify the host in the computer network, and the domain name uses a character form to identify the host in the computer network. In the Internet, one domain name can correspond to one IP address, but one IP address can be corresponding to multiple domain names.

Lenovo YOGA Portal mini host officially announced on July 27, released by ChinaJoy, with built-in 350W power supply Lenovo YOGA Portal mini host officially announced on July 27, released by ChinaJoy, with built-in 350W power supply Jul 23, 2024 pm 01:47 PM

According to news from this site on July 23, Lenovo’s YOGA Portal high-performance desktop computer, which has been exposed for a long time, is now confirmed to be officially released at ChinaJoy in Shanghai on July 27. It is claimed to be a mini host designed for professional AI creation. It is a performance master and an expert in AI creation of 3D digital people. The AI ​​virtual background is based on the on-site pictures provided by our friend @yuP in Shanghai. The volume of this small host is only 3.7L. It is made of anodized aluminum and is equipped with Intel Core. i7-14700 processor, equipped with 32GBDDR5 memory and 1TB solid state drive. YOGA Portal is both a host and an all-in-one AI creation machine. The high-performance host is combined with an algorithm-optimized camera to form an integrated solution. Just stand in front of the camera i.e.

MSI showcases MEG Vision MSI showcases MEG Vision Jun 09, 2024 am 11:15 AM

According to news from this site on June 5, MSI participated in the 2024 Taipei International Computer Show and showcased a new flagship gaming computer called MEGVisionXAI. This game console is an extension of the existing Vision series and uses a very eye-catching surround glass design, with internal components clearly visible. The most attractive part is that the front of the host is equipped with an oversized touch screen. MSI staff said that it can synchronize MSI’s exclusive AI applications to further enhance various AI functions. The relevant pictures attached to this site are as follows: MSI has not yet explained more details. From the pictures shared, you can see that a local AI chatbot is running on the screen. Users can interact with it and ask it to complete AI tasks and locate locally stored documents. wait. Source of the above picture:

what is mysql host name what is mysql host name Jul 20, 2023 am 11:37 AM

The mysql host name refers to the name or IP address used to identify and access the mysql database server. When building and maintaining the mysql server, in order to remotely access the database on the server, the user needs to know the host name of the mysql server and ensure that the server has been correctly Configuration and firewall settings, using the correct connection string can connect and access the mysql server in the programming language.

Cooler Master Sneaker Cooler Master Sneaker Feb 15, 2024 am 08:21 AM

This website reported on February 14th that Cooler Master had previously displayed a SneakerX shoe-shaped computer host, which imitated the appearance of sports shoes. The national bank price of the machine has now been released. This is a red and white sneaker PC host equipped with a mini-ITX motherboard, 850WSFX gold medal full-module power supply, 360 integrated water cooling, and a size of 650x306x348mm. This site found that the Chinese version of the machine is available in AMD and Intel versions: the AMD version is equipped with Ryzen 97950X3D processor + RX7900XTX graphics card, equipped with 64GBDDR56000MHz memory and 4TB PCIe4.0SSD, as well as Wi-Fi6E + Bluetooth 5.2 + wired network port . Intel

What are the ways to check the host name in Linux? What are the ways to check the host name in Linux? Jun 07, 2023 pm 06:03 PM

There are 10 ways to check the host name in Linux, which are: 1. Use hostnamectl; 2. Use hostname; 3. Use uname; 4. Use nmcli; 5. Use sysctl; 6. Use cat /etc/hostname; 7. Use cat /etc/hosts; 8. Through ProcFS; 9. Use nmtui; 10. View through /etc/sysconfig/network.

Computer host memory module installation guide Computer host memory module installation guide Jan 05, 2024 am 09:49 AM

When installing a memory stick, if it is installed upside down, not only will it not fit in, but it may even cause the motherboard and CPU to burn out. So how do you install the memory stick in the computer host from the front to the back? In fact, in order to distinguish the front from the back, the memory stick will have an asymmetrical one. slot. How to install the front and back of a memory stick in a computer host: Answer: Observe the notch on the gold finger of the memory stick, as shown in the picture. Align the notch with the protrusion on the motherboard memory socket and insert it. 1. In order to prevent users from confusing the front and back. 2. So the socket of the current memory module is asymmetrical. 3. It may appear in the left or right position. 4. When installing, we must first ensure that the interface of our memory module matches the motherboard. 5. After confirmation, find the memory slot on the motherboard and release the buckle at the location shown in the picture. 6. Break up

Understand the hosting configuration and requirements required for a WordPress website Understand the hosting configuration and requirements required for a WordPress website Mar 05, 2024 pm 04:51 PM

Hosting Configuration and Requirements Required for a WordPress Website Before building a WordPress website, it is very important to understand the hosting configuration and requirements required. With proper hosting configuration, the stability, security, and performance of your website can be ensured. This article will introduce the hosting configuration and requirements required for a WordPress website, and provide some specific code examples to help you understand better. 1. Server environment 1.1PHP version requirements WordPress officially recommends using PHP version 7.4 or newer

See all articles