Yuav ua li cas rau nruab MySQL ntawm macOS

Cov txheej txheem:

Yuav ua li cas rau nruab MySQL ntawm macOS
Yuav ua li cas rau nruab MySQL ntawm macOS
Anonim

Yuav Paub

  • Go to MySQL website > Downloads > Community (GPL) Downloads > Community Server > Download.
  • Next, qhib DMG file > ob-nias PKG installer > Install/ Change Install Location > Install Software.
  • To run MySQL, xaiv Apple logo > System Preferences > MySQL.

Kab lus no piav qhia yuav ua li cas rub tawm thiab nruab MySQL database rau macOS Catalina (10.15) thiab macOS Mojave (10.14).

Yuav ua li cas rub tawm MySQL rau macOS

The MySQL rub tawm rau macOS Catalina yog sib xws nrog macOS Mojave. Nov yog yuav ua li cas nrhiav thiab rub tawm MySQL rau macOS.

  1. Mus rau MySQL lub vev xaib thiab xaiv qhov Downloads kev xaiv rau saum lub vijtsam.

    Image
    Image
  2. Scroll down mus rau hauv qab ntawm Downloads cov ntxaij vab tshaus thiab xaiv MySQL Community (GPL) Downloads.

    Image
    Image
  3. Xaiv MySQL Community Server.

    Image
    Image
  4. Xaiv macOS hauv Select Operating System ntawv qhia.

    Image
    Image
  5. Xaiv Download mus rau sab xis ntawm macOS 10.15 (x86, 64-ntsis), DMG Archive.

    Image
    Image
  6. Koj pom cov nyees khawm los nkag rau hauv koj tus account Oracle Web lossis sau npe rau ib qho tshiab. Xaiv No ua tsaug, cia li pib kuv download.

    Image
    Image

Thaum koj download tiav lawm, koj npaj tau pib lub installation.

Mac installer tsis muab ntau ntxiv rau koj. Yog tias koj xav tau cov ntaub ntawv, qauv databases, lossis tus neeg tshawb nrhiav GUI DB, koj yuav tsum tua lawv tus kheej.

Yuav ua li cas rau nruab MySQL ntawm macOS

Lub DMG archive rau MySQL muaj tus phooj ywg wizard-style installer. Txhawm rau nruab MySQL, ua cov kauj ruam hauv qab no:

  1. ob-nias DMG cov ntaub ntawv qhib nws.
  2. ob-nias lub PKG installer.

    Image
    Image
  3. Tus installer pib qhia rau koj paub tias nws yuav kuaj xyuas qhov yuav tsum tau ua ua ntej. Nyem Continue pib.

    Image
    Image
  4. Thawj kauj ruam ntawm kev teeb tsa muaj kev txuas mus rau MySQL cov ntaub ntawv ntsig txog, xws li cov ntaub ntawv. Nyem Continue.
  5. Tau txais daim ntawv tso cai software, uas yog GNU Greater Public License, lossis GPL. MySQL yog qhib qhov software. Nyem Continue mus rau.

    Image
    Image
  6. Los ntawm lub neej ntawd, koj Mac lub hard drive tseem ceeb yog qhov chaw rub tawm. Nyem Install mus txuas ntxiv. (Yog tias koj muaj lwm lub drives thiab xav hloov los ntawm lub hard drive tseem ceeb, nyem Hloov Nruab Qhov Chawua ntej tso cov software rau lwm qhov.)

    Image
    Image
  7. Sau koj tus password thiab nyem Install Software.

    Image
    Image
  8. Tau thaum cov ntaub ntawv luam rau koj Mac.

    Image
    Image
  9. In the Configure MySQL server screen, nyem Siv Strong Password Encryption. Nyem Next.

    Image
    Image
  10. Koj raug ceeb toom rau MySQL hauv paus lo lus zais. Tus neeg siv hauv paus yog tus superuser ntawm MySQL subsystem. Nyem Finish thaum koj ua tiav.

Lub vijtsam kawg qhia cov ntsiab lus thiab cov txuas. Kev teeb tsa tiav lawm.

Yuav ua li cas khiav MySQL ntawm macOS

Koj thawj qhov kev xav kom khiav MySQL tom qab kev teeb tsa tej zaum yuav yog qhib Cov Ntawv Qhia Ntawv, tab sis MySQL yog daim ntawv thov neeg rau zaub mov, yog li koj yuav tsis pom nws nyob ntawd.

  1. Click the Apple logo nyob rau sab saum toj sab laug ntawm lub vijtsam thiab nyem System Preferences.
  2. Click MySQL txhawm rau tso nws.

    Image
    Image
  3. Los ntawm no, muaj ntau yam koj tuaj yeem ua:

    • Nias lub Start MySQL Server khawm pib thiab nres lub server.
    • Xaiv seb koj puas xav kom tus neeg rau zaub mov khiav tau ntawm kev pib.
    • Click Initialize Database txhawm rau txhim kho lub neej ntawd database.
    • Uninstall MySQL.
  4. Click the Configuration tab los teeb tsa cov kev xaiv siab, suav nrog cov ntaub ntawv teev npe, qhov chaw ntawm qhov yuam kev, lossis cov ntaub ntawv kev cai, yog tias koj muaj. Nyem Apply tom qab kev hloov pauv.

    Image
    Image

koj ua tiav.

Tus MySQL database server khiav ntawm chaw nres nkoj 3306 los ntawm lub neej ntawd. Yog tias koj npaj yuav txuas mus rau cov ntaub ntawv los ntawm lwm lub tshuab, koj yuav tsum tau kho koj lub firewall.

Koj yuav tsum nkag mus rau hauv cov ntsiab lus kev qhia rau MySQL kom siv tau ntau rau koj. Nco ntsoov txhuam cov ntsiab lus ntawm SQL.

Pom zoo: