How to solve the problem that MySQL cannot start because it cannot create temporary files

How to solve the problem that MySQL cannot start because it cannot create temporary files

Problem Description

I recently encountered a problem at work. MySQL failed to start. The error log was:

mysqld: Can't create/write to file '/tmp/ibfguTtC' (Errcode: 13)

Description: The /tmp directory cannot be written

Solution

Use the command ll -d /tmp to check the directory permissions.

Use chmod 1777 /tmp to set the correct permissions

Startup Success


Summarize

The above is the full content of this article. I hope that the content of this article can bring some help to your study or work. If you have any questions, you can leave a message to communicate. Thank you for your support of 123WORDPRESS.COM.

You may also be interested in:
  • How to create a temporary folder in Python
  • How to create a temporary file in C#
  • Java creates a temporary file and then automatically deletes the file when the program exits
  • Unix programming to create a temporary file with a fixed prefix code sharing
  • Detailed example of creating a temporary file using File.createTempFile

<<:  JavaScript implementation of a simple addition calculator

>>:  How to use nginx to simulate blue-green deployment

Recommend

Solve the problem of inconsistency between mysql time and system time in docker

Recently, when I installed MySQL in Docker, I fou...

How to store images in MySQL

1 Introduction When designing a database, it is i...

Understanding MySQL index pushdown in five minutes

Table of contents What is index pushdown? The pri...

Detailed explanation of TypeScript 2.0 marked union types

Table of contents Constructing payment methods us...

Solution to the welcome to emergency mode message when booting CentOS7.4

Today I used a virtual machine to do an experimen...

Use Docker Compose to quickly deploy ELK (tested and effective)

Table of contents 1. Overview 1.1 Definition 1.2 ...

Detailed explanation of the JVM series memory model

Table of contents 1. Memory model and runtime dat...

Vue2 cube-ui time selector detailed explanation

Table of contents Preface 1. Demand and Effect ne...

Detailed explanation of tcpdump command examples in Linux

Preface To put it simply, tcpdump is a packet ana...

Summary of Nginx load balancing methods

To understand load balancing, you must first unde...

Detailed process of configuring Https certificate under Nginx

1. The difference between Http and Https HTTP: It...

Detailed explanation of MySQL clustered index and non-clustered index

1. Clustered Index Table data is stored in the or...

Super simple implementation of Docker to build a personal blog system

Install Docker Update the yum package to the late...