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

Create Mariadb database with Docker

王林
Release: 2024-01-06 08:07:58
forward
616 people have browsed it

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!

Related labels:
source:linuxprobe.com
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template