Docker installs percona and solves the crash problem

Pankaj kushwaha
Jan 15, 2021

--

This article is based on the system environment of CentOS 7.3, installs percona, and fixes the crash issue

  • CentOS 7.3
  • Docker-ce

One, install percona mirror

(1) Pull the percona image

docker pull percona:5.7.23

(2) Create and configure percona container

docker create -p 3306:3306 --name percona
-v /data/mysql-data:/var/lib/mysql
-e MYSQL_ROOT_PASSWORD=123456
percona:5.7.23

(3) Start the percona container

docker start percona

2. Solve the crash problem of starting percona container

(1) Grant read and write permissions to the host directory

chmod -R 777 /data/mysql-data

(2) Start the percona container

docker start percona

I like to learn new and better ways of doing things when working on a scale, and feel free to ask questions and make suggestions.
Also, check out another story on this.
Thanks for reading this.

--

--

Pankaj kushwaha
Pankaj kushwaha

Written by Pankaj kushwaha

Database/System Administrator | DevOPS | Cloud Specialist | DevOPS

No responses yet