Cov txheej txheem:

Kuv yuav txuas rau MySQL Docker thawv li cas?
Kuv yuav txuas rau MySQL Docker thawv li cas?

Video: Kuv yuav txuas rau MySQL Docker thawv li cas?

Video: Kuv yuav txuas rau MySQL Docker thawv li cas?
Video: Tsis Tau Txaus Koj | Kong Chue (Official Music Video) 2024, Kaum ib hlis
Anonim

Pib qhov chaw deb MySQL Server nrog Docker sai

  1. Kauj ruam 1: Tau qhov duab docker ntawm MySQL . Koj tuaj yeem tshawb nrhiav yam koj xav tau los ntawm docker .com/ ib.
  2. Kauj ruam 2: Pib khiav a docker thawv los ntawm MySQL duab . Tam sim no, koj tuaj yeem pib ib mysql - server piv txwv nrog cov docker khiav command:
  3. Kauj Ruam 3: Kev sib txuas mus rau MySQL Server piv txwv.

Kuj paub yog, kuv yuav txuas mus rau docker database li cas?

Hmoov zoo koj tuaj yeem yooj yim muaj lub thawv txuas rau txhua qhov kev pabcuam uas tau teeb tsa rau koj Docker tus tswv tsev. Qhov no txhais tau tias koj tuaj yeem nruab koj li database / kev pabcuam ncaj qha rau koj Docker host thiab ces txuas rau nws los ntawm kev khiav Docker thawv. Koj tuaj yeem yooj yim txuas mus rau koj lub network IP chaw nyob.

Tsis tas li ntawd, koj yuav tsum khiav database hauv Docker? Yog koj ' tab tom ua haujlwm ntawm ib qhov project me me, thiab tab tom xa mus rau ib lub tshuab, nws yog qhov zoo rau khiav koj database hauv a Docker thawv . Nco ntsoov mount lub ntim kom cov ntaub ntawv tsis tu ncua, thiab muaj cov txheej txheem thaub qab hauv qhov chaw. Sim ua kom lawv rov qab txhua lub sijhawm kom paub tseeb tias koj cov ntaub ntawv thaub qab yog qhov zoo.

Tom qab ntawd, lo lus nug yog, kuv yuav sau lub thawv docker li cas?

Sau Docker Ntim

  1. Raws li koj tuaj yeem pom, daim duab saum toj no qhia tias tsis muaj cov thawv ntim khoom.
  2. Sau cov thawv los ntawm lawv tus ID siv -aq (ntsiag to): docker ps -aq.
  3. Txhawm rau sau tag nrho cov ntaub ntawv loj ntawm txhua lub thawv, siv –s (loj): docker ps –s.
  4. Cov lus txib ps muab ob peb kab lus qhia:

Tsis tso cai txuas rau MySQL server no?

Host yog Tsis tso cai txuas rau MySQL Server . Qhov no yuam kev tshwm sim vim lub neej ntawd configuration lub MySQL database yog tam sim no siv. Qhov kev teeb tsa no tso cai kev sib txuas tsuas yog los ntawm 'hauv paus' tus neeg siv thaum los ntawm 'localhost' thiab tsis yog Lwm qhov chaw nyob IP.

Pom zoo: