Qhov twg MySQL ntsia ntawm MacOS?
Qhov twg MySQL ntsia ntawm MacOS?

Video: Qhov twg MySQL ntsia ntawm MacOS?

Video: Qhov twg MySQL ntsia ntawm MacOS?
Video: Los Paub Txog Peb Cov Tub Kawm - 2019 2024, Kaum ib hlis
Anonim

Los ntawm default, lub MySQL directory yog ntsia hauv qab /usr/local/. Txawm zoo dua, ntxiv /usr/local/ mysql / rau hauv rau koj PATH ib puag ncig hloov pauv.

Yog li ntawd, kuv yuav nrhiav tau qhov twg MySQL raug teeb tsa?

Koj ua tau saib qhov twg cov ntaub ntawv pob ntsia los ntawm kev siv dpkg -L hais kom ua. Nco ntsoov tsab ntawv peev L. Yog koj xav tau paub lub npe pob khoom rau MySQL , koj tuaj yeem siv dpkg -l | grep ua mysql saib tag nrho cov pob khoom uas muaj mysql hauv lawv lub npe.

Tom qab, lo lus nug yog, qhov twg brew nruab MySQL? Txhawm rau nruab Homebrew, qhib Terminal thiab khiav:

  1. $ /usr/bin/ruby -e "$(curl -fsSL
  2. $ brew nruab mysql.
  3. $ brew kais homebrew / kev pabcuam.
  4. $ brew kev pabcuam pib mysql.
  5. mysqladmin -u root password 'yourpassword'
  6. docker rub mysql/mysql-server.

Raws li, yog MySQL preinstalled ntawm Mac?

Mac OS X Server los nrog MySQL ua ntej - ntsia.

Kuv yuav pib MySQL ntawm Mac li cas?

Pib , Nres, Rov pib dua MySQL los ntawm Mac OS Preference Vaj Huam Sib Luag Ua li ntawd, tsuas yog mus rau qhov ? Apple menu thiab qhib Kev xaiv qhov system. Xaiv qhov " MySQL "Preference panel, ces nias rau ntawm " Pib MySQL Server" khawm rau pib MySQL Server rau Mac . Yog tias lub server twb pib lawm, lub pob yuav hloov mus rau "Stop MySQL Server".

Pom zoo: