MySQL he punaha whakahaere whakahaere pātengi raraunga e whakamahia ana i te ao. I te nuinga o te waa ka whakamahia i roto i te whakawhanaketanga paetukutuku. Mena ka whakamahia a Ubuntu hei punaha whakahaere matua (OS) ki runga i to rorohiko, ma te whakauru i tenei punaha ka raru te raruraru, na te mea ka mahi koe. "Whakamutunga"na roto i te mahi he maha nga whakahau. Engari i raro nei ka whakaahuahia te whakamaarama me pehea te whakaoti i te whakaurutanga o te MySQL ki Ubuntu.
Tirohia hoki: Me pehea te whakauru i te Linux mai i te puku hiko
Tāutahia taku MySQL i Ubuntu
I te mea ko te korero, ko te whakauru i te punaha MySQL i te Ubuntu OS ehara i te mahi ngawari, heoi, ko te mohio ki nga whakahau e tika ana, ara ma te kaiwhakamahi noa e taea ai.
Panui: ko nga whakahau katoa ka tohua i roto i tenei tuhinga me whakahaere me nga mana whakawhiwhi o te superuser. Na reira, i muri i to urunga atu ki a ratau ka patoi i te tohu Whakauru, ka pataihia koe mo te kupuhipa i tohua e koe i te wa e whakauru ana te OS. Kia mahara ka uru ana koe ki te kupuhipa, kaore i te whakaatuhia nga perehitini, na me aata kuhu koe i te ranunga tika me te pēhi i te Whakauru.
Hipanga 1: Whakahou i te Pūnaha Mahi
I mua i to tiimata te whakauru i te MySQL, me tino tirotiro e koe nga whakahoutanga ki to OS, me ki te mea, toha atu.
- Tuatahi, whakahou i nga rehitatanga katoa ma te rere ki roto "Whakamutunga" e whai ake nei:
sudo apt whakahou
- Na kia whakauruhia nga whakahoutanga kua kitea:
he pai te whakahoutanga sudo
- Taria kia oti ra ano te tango o te tango, me te whakauru, ka whakaara ano i te punaha. Ka taea e koe te mahi i tenei kaore rawa me waiho "Whakamutunga":
whakaoho sudo
Kia oti te punaha, takiuru ano "Whakamutunga" a ka haere ki te taahiraa ake.
Tirohia hoki: He Rahi Nga Mahi Whakamahia i Te Utu Linux
Hipanga 2: Te whakaurunga
Inaianei whakauruhia te tūmau MySQL ma te whakahaere i te whakahau e whai ake nei:
sudo pai te whakauru i taku miihini-server
Ina puta mai he patai: "Kei te hiahia haere koe?" tomo huru D ranei "E" (mai i te whakangao OS) ka paato Whakaurua.
I te wa e whakauruhia ana, ka puta he atanga pseudographic ka tonoa koe ki te whakatakoto i te kupuhipa superuser hou mo te tūmau MySQL - whakauruhia, ka patohia OK. Whai muri i tērā, whakaū i te kupuhipa i uru mai ka pato tonu OK.
Tuhipoka: i te atanga pseudographic, te huri i waenga i nga waahi whakahirahira e mahia ana ma te paatene ki te tohu TAB.
I muri i to tautuhi i te kupuhipa, me tatari koe ki te whakauru i te tūmau MySQL ki te whakaoti me te whakauru i tana kaihoko. Ki te mahi i tenei, whakahaere tenei whakahau:
sudo pai te whakauru i taku miihini-kiritaki
I tenei wa, kaore koe e hiahia ki te whakaū i tetahi mea, na i muri i te whakaotinga o te mahi, ka taea te whakaaro o te whakauru mo MySQL.
Opaniraa
I te mutunga, ka taea e taatau ki te kii ko te whakauru i te MySQL i Ubuntu ehara i te mahi uaua, ina koa ka mohio koe ki nga whakahau e tika ana. Ka tere koe i nga taahiraa katoa, ka uru atu koe ki to papaanga ka taea e koe te whakarereke i taua mea.