Docker installs percona and solves the crash problem

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.

--

--

--

Database/System Administrator | DevOPS | Cloud Specialist | DevOPS

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

THE BENEFITS OF S-WALLET Dear cryptocommunity, l present to you S-Wallet - The best Financial…

How to build tasks dependencies with durations in Google Sheets, ClickUp, Monday, Wrike…

GIT+Local Testing or GTFO

New User Guide: How to Register an IOST Mainnet Account

Data copy from ADLS Gen2 and AWS S3 accounts into Google Storage bucket

My journey to Google Cloud Certifications: Part 2

Using Laravel Vapor for your SaaS business? Better think twice.

2018 in retrospect.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pankaj kushwaha

Pankaj kushwaha

Database/System Administrator | DevOPS | Cloud Specialist | DevOPS

More from Medium

Proper launch of python packages

Migrate from Keil to SDCC

Using Github Actions, Python and Telegram to Get Ribeye Specials

“One Button” Network Validation for Your IoT Device Installations