Home >System Tutorial >LINUX >Create Mariadb database with Docker

Create Mariadb database with Docker

王林
王林forward
2024-01-06 08:07:58630browse

Create Mariadb database with Docker

Get mariadb mirror address Pull the latest mirror of maridb Start, mariadb mirror View the ports occupied by startup Mysql linked to docker Error solution

If you are prompted that the sock file cannot be linked, you need to connect to the mariadb container of docker to authorize the link

Link to docker mariadb

Get the CONTAINER ID of mariadb

The CONTAINER ID of my mariadb mirror here is 255650e5e83d

Log in to mariadb Authorize the link permissions of the root user of mysql (the same settings are set for other general users) Connect to mysql again

The above is the detailed content of Create Mariadb database with Docker. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:linuxprobe.com. If there is any infringement, please contact admin@php.cn delete