I-MySQL iyi-system yokuphathwa kwedatha esetshenziswa kuwo wonke umhlaba. Ngokuvamile kuvame ukusetshenziswa ekuthuthukiseni iwebhu. Uma Ubuntu isetshenziselwa uhlelo lokusebenza oluyinhloko (OS) kwikhompyutha yakho, ukufaka le software kungaba nzima njengoba kufanele usebenze "Isikhumbuzo"ngokusebenzisa imiyalo eminingi. Kodwa ngezansi kuzochazwa ngokuningiliziwe ukuthi ungafaka kanjani i-MySQL ku-Ubuntu.
Bheka futhi: Indlela yokufaka i-Linux kusuka ku-flash drive
Ukufaka i-MySQL ku-Ubuntu
Njengoba kwashiwo, ukufaka uhlelo lwe-MySQL ku-Ubuntu OS akuyona umsebenzi olula, kodwa ukwazi yonke imiyalo edingekayo, ngisho nomsebenzisi ojwayelekile angayiphatha.
Qaphela: yonke imiyalo ezobe ibalwe kulesi sihloko kumele ilandelwe ngamalungelo amakhulu. Ngakho-ke, emva kokungena kuzo futhi ucindezela ukhiye we-Enter, uzocelwa iphasiwedi oyishilo uma ufaka i-OS. Qaphela ukuthi uma ufaka iphasiwedi, abalingiswa ababonwanga, ngakho-ke kuzodingeka uthayiphe inhlanganisela eyiyo ngobuwula bese ucindezela u-Enter.
Isinyathelo 1: Buyekeza uhlelo lokusebenza
Ngaphambi kokuqala ukufakwa kwe-MySQL, kubalulekile ukuhlola izibuyekezo ze-OS yakho, futhi uma kukhona, yibafake.
- Ukuze uqale, ubuyekeze wonke ama-repository ngokusebenza "Isikhumbuzo" umyalo olandelayo:
sudo update update
- Manje sizofaka izibuyekezo ezitholakalayo:
sudo ukuthuthukisa ngcono
- Linda inqubo yokulanda nokufaka ukuqedela, bese uqala kabusha uhlelo. Ungakwenza lokhu ngaphandle kokushiya "Isikhumbuzo":
ukuqala kabusha kwe-sudo
Ngemuva kokuqala uhlelo, ungena ngemvume futhi "Isikhumbuzo" bese uya esiteji esilandelayo.
Bheka futhi: Izimiso ezisetshenziswa njalo kwi-Linux Terminal
Isinyathelo 2: Ukufakwa
Manje sizofaka iseva ye-MySQL ngokusebenzisa umyalo olandelayo:
Sudo kufanele ufake i-mysql-server
Lapho ebuzwa: "Ufuna ukuqhubeka?" faka uhlamvu "D" noma "Y" (kuye ngokuthi i-OS yendawo) bese uchofoza Ngena.
Ngesikhathi sokufakwa, isikhombimsebenzisi esibonakalayo esingabonakali sizovela, sikucele ukuba usethe iphasiwedi entsha ye-superuser yeseva ye-MySQL - faka bese uchofoza "Kulungile". Ngemuva kwalokho, qinisekisa iphasiwedi oyifakile bese uchofoza futhi. "Kulungile".
Qaphela: ku-interface esibonakalayo, ukushintsha phakathi kwezindawo ezisebenzayo kwenziwa ngokucindezela ukhiye we-TAB.
Emva kokusetha iphasiwedi, kuzomele ulinde kuze kufike ukufakwa kwesiphakeli se-MySQL bese ufaka iklayenti layo. Ukuze wenze lokhu, sebenzisa lo myalo:
Sudo kufanele ufake i-mysql-iklayenti
Kulesi sigaba, akudingeki uqinisekise noma yini, ngakho-ke ngemuva kokuba inqubo iqedile, ukufakwa kwe-MySQL kungabhekwa njengokuphelele.
Isiphetho
Ngenxa yalokho, singasho ukuthi ukufakwa kwe-MySQL ku-Ubuntu akuyona inqubo enzima kakhulu, ikakhulu uma wazi yonke imiyalo edingekayo. Uma usuhamba kuzo zonke izinyathelo, uzokwazi ukufinyelela ngokushesha ku-database yakho futhi ukwazi ukwenza izinguquko kuwo.