Cov txheej txheem:

Kuv yuav pib MariaDB ntawm CentOS 7 li cas?
Kuv yuav pib MariaDB ntawm CentOS 7 li cas?

Video: Kuv yuav pib MariaDB ntawm CentOS 7 li cas?

Video: Kuv yuav pib MariaDB ntawm CentOS 7 li cas?
Video: Kuv Yuav Handsome by Hands Band (UNoffical MV) 2024, Hlis ntuj nqeg
Anonim

Nruab MariaDB 5.5 ntawm CentOS 7

  1. Nruab tus MariaDB pob siv tus thawj tswj pob yum: sudo yum nruab mariadb - server.
  2. Thaum lub installation tiav lawm, pib tus MariaDB kev pab thiab pab kom nws pib ntawm khau raj siv cov lus txib hauv qab no: sudo systemctl pib mariadb sudo systemctl pab mariadb .

Hauv qhov no, kuv yuav nkag mus rau MariaDB ntawm CentOS li cas?

Hauv paus ID nkag mus

  1. Nkag mus rau MariaDB raws li tus neeg siv hauv paus: mysql -u hauv paus -p.
  2. Thaum tau txais kev tshoov siab, sau tus password hauv paus koj tau muab thaum lub mysql_secure_installation tsab ntawv tau khiav. Tom qab ntawd koj yuav raug nthuav tawm nrog lub taub hau txais tos thiab MariaDB qhov kev ceeb toom raws li qhia hauv qab no:
  3. Txhawm rau tsim cov npe ntawm cov lus txib rau MariaDB qhov kev hais kom ua, sau h.

Tsis tas li, kuv yuav pib MariaDB kev pabcuam hauv Linux li cas? Pib lub plhaub MariaDB

  1. Ntawm qhov kev hais kom ua, khiav cov lus txib hauv qab no kom tso lub plhaub thiab nkag mus rau nws raws li tus neeg siv hauv paus: /usr/bin/mysql -u root -p.
  2. Thaum koj raug ceeb toom rau tus password, nkag mus rau qhov koj tau teeb tsa ntawm kev teeb tsa, lossis yog tias koj tsis tau teeb tsa, nias Enter kom xa tsis muaj tus password.

Ib yam li ntawd, kuv yuav pib MySQL ntawm CentOS 7 li cas?

Txhawm rau nruab MySQL 8 ntawm CentOS 7, koj ua raws li cov kauj ruam no:

  1. Teeb Yum repository. Ua raws li cov lus txib hauv qab no kom pab MySQL yum repository ntawm CentOS:
  2. Nruab MySQL 8 Community Server.
  3. Pib MySQL Service.
  4. Qhia tus password rau tus neeg siv hauv paus.
  5. MySQL Secure Installation.
  6. Rov pib dua thiab qhib qhov kev pabcuam MySQL.
  7. Txuas rau MySQL.

Kuv yuav paub li cas yog MariaDB tau teeb tsa ntawm CentOS 7?

Peb tab tom khiav MariaDB ntawm CentOS 7 tab sis cov txheej txheem yuav tsum zoo ib yam rau lwm qhov kev khiav hauj lwm

  1. Nkag mus rau hauv koj qhov piv txwv MariaDB, hauv peb rooj plaub peb nkag mus siv cov lus txib:
  2. Tom qab koj nkag rau hauv koj tuaj yeem pom koj lub version hauv cov ntawv txais tos - tseem ceeb hauv qhov screen-lob hauv qab no:

Pom zoo: