MySQL yog lub chaw tswj cov ntaub ntawv siv thoob ntiaj teb. Feem ntau cov feem ntau nws siv rau hauv kev tsim kho lub web. Yog hais tias Ubuntu siv raws li kev ua haujlwm loj (OS) ntawm koj lub khoos phis tawm, tom qab ntawd nruab cov software no tuaj yeem tsim teeb meem, vim koj yuav tsum tau ua haujlwm hauv "Chaw Nres Tsheb"los ntawm kev ua ntau cov lus txib. Tab sis hauv qab no yuav piav qhia ntxaws yuav ua li cas kom tiav kev teeb tsa ntawm MySQL hauv Ubuntu.
Saib ntxiv: Yuav ua li cas rau nruab Linux los ntawm lub flash drive
Nruab MySQL hauv Ubuntu
Raws li tau hais, txhim kho MySQL kab ke hauv Ubuntu OS tsis yog ib txoj haujlwm yooj yim, txawm li cas los xij, paub tag nrho cov lus txib uas tsim nyog, txawm tias ib tus neeg siv dog dig tuaj yeem tiv nrog nws.
Nco tseg: tag nrho cov lus txib uas yuav tau hais kom meej nyob rau hauv tsab xov xwm no yuav tsum khiav nrog cov cai superuser. Yog li no, tom qab nkag rau lawv thiab nyem tus yuam sij Enter, koj yuav tau nug tus password uas koj teev thaum nruab OS. Thov nco ntsoov tias thaum nkag mus rau lo lus zais, cov cim tsis pom, yog li koj yuav tsum tau ntaus cov kev sib txuas uas tsis pom tseeb thiab nias Enter.
Kauj Ruam 1: Hloov kho Cov Txheej Txheem Ua Haujlwm
Ua ntej pib lub installation ntawm MySQL, koj yuav tsum twv yuav raug kuaj xyuas qhov hloov tshiab rau koj OS, thiab yog tias muaj, nruab lawv.
- Ua ntej tshaj, hloov tag nrho cov chaw cia khoom los ntawm kev khiav hauv "Chaw Nres Tsheb" nram qab no hais kom ua:
sudo Apt hloov tshiab
- Tam sim no cia nruab ib qhov hloov tshiab pom:
sudo Apt txawj tej yam ntxiv
- Tos kom txog thaum rub tawm thiab txheej txheem tiav, thiab mam li rov pib dua lub system. Koj tuaj yeem ua qhov no yam tsis tau tawm mus "Chaw Nres Tsheb":
sudo reboot
Tom qab pib lub system, nkag mus rau hauv dua "Chaw Nres Tsheb" thiab mus rau theem tom ntej.
Saib ntxiv: Cov Lus Qhia Uas Siv Ntau Dhau Hauv Linux Terminal
Kauj Ruam 2: Kev Teeb Nruab
Tam sim no nruab rau MySQL server los ntawm kev khiav cov lus qhia hauv qab no:
sudo apt nruab mysql-server
Thaum ib lo lus nug tshwm tuaj: "Xav mus ntxiv?" ntaus cim D lossis "Y" (nyob ntawm OS hauv zos) thiab nyem Sau.
Thaum lub sijhawm teeb tsa, lub ntsej muag pseudographic yuav tshwm nyob rau hauv uas koj yuav tau hais kom teeb tus lej superuser tshiab rau MySQL server - nkag mus thiab nyem OKCov. Tom qab ntawd, paub meej tias tus password nyuam qhuav nkag thiab nias dua OK.
Nco tseg: hauv pseudographic interface, hloov ntawm cov chaw nquag ua los ntawm nias lub pob TAB.
Tom qab koj tsim tus password, koj yuav tsum tau tos rau kev teeb tsa ntawm MySQL server kom tiav thiab nruab nws cov neeg siv khoom. Ua li no, khiav cov lus txib no:
sudo apt nruab mysql-neeg
Nyob rau theem no, koj tsis tas yuav lees paub dab tsi, yog li tom qab cov txheej txheem tiav, kev teeb tsa ntawm MySQL tuaj yeem txiav txim siab ua tiav.
Xaus
Yog li ntawd, peb tuaj yeem hais tias txhim kho MySQL hauv Ubuntu tsis yog cov txheej txheem nyuaj, tshwj xeeb yog tias koj paub tag nrho cov lus txib tsim nyog. Sai li koj dhau los ntawm txhua kauj ruam dhau los, koj yuav tau txais kev nkag mus sai sai rau koj cov ntaub ntawv thiab tuaj yeem hloov pauv rau nws.