공식홈페이지: https://www.mysql.com
homebrew를 이용해서 설치를 진행함
homebrew 설치 참고: [OS/MAC OS X] - [macOS High Sierra]Homebrew install wget
설치
brew install mysql
Last login: Thu Jun 14 19:58:09 on ttys000 zelkun:~ zelkun$ brew install mysql Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). ==> New Formulae ark fortio mysql-client bats-core goreleaser mysql@5.7 bitwarden-cli howard-hinnant-date pygitup circleci hyperfine shellharden clozure-cl imageoptim-cli soundpipe cointop kakoune taskell confluent-oss keepkey-agent triton cuba kubecfg tunnel density libheif vsts-cli dita-ot mariadb@10.2 drafter mk-configure ==> Updated Formulae abcl godep osm2pgrouting abcm2ps goenv osmfilter abcmidi gomplate osquery ace google-benchmark p11-kit acpica google-java-format packer activemq googler parallel agda gopass parallelstl agedu gosu parquet-tools amazon-ecs-cli gource passenger amqp-cpp gradle pdfgrep angular-cli graphite2 pdftoedn annie gromacs pdftoipe ansible groonga pdns ant@1.9 groovy pdnsrec apache-flink groovysdk pegtl apache-spark gsoap percona-server apibuilder-cli gssh percona-server-mongodb arangodb gtk-mac-integration percona-server@5.6 arpack h2o percona-toolkit artifactory hadolint percona-xtrabackup asdf hadoop petsc aws-sdk-cpp hapi-fhir-cli pgloader awscli haproxy pgpool-ii azure-cli harfbuzz pgroonga babl hbase phoronix-test-suite bacula-fd hcloud php ballerina heroku php-code-sniffer basex hg-fast-export php-cs-fixer bash homeshick php@7.1 bat hopenpgp-tools phpunit batik hub picard-tools bazel hugo pike bcal hydra pilosa bento4 idris pkcs11-helper bibtexconv ii plantuml bibutils imagemagick plenv bison imagemagick@6 plowshare bitrise immortal pmd bnd infer pngquant bro influxdb pony-stable buildifier innoextract ponyc buku innotop poppler byacc inspectrum povray bzt ios-sim ppsspp cake iozone pre-commit calabash ispc presto calicoctl jdupes proj cargo-completion jenkins prometheus carrot2 jenkins-job-builder psqlodbc cayley jenkins-lts pstoedit cdrdao jetty pumba certbot jetty-runner purescript ceylon jfrog-cli-go puzzles cglm jooby-bootstrap pyenv-virtualenv chaiscript jruby pygobject3 chakra json-fortran pyvim checkbashisms jsonpp qcachegrind checkstyle juju qcli chronograf jupyter qjackctl clang-format kapacitor qmmp clblast khal qpid-proton clhep kibana@5.6 qrencode closure-compiler kitchen-sync qt cmake kompose quantlib cockroach kops quicktype cocoapods kotlin rabbitmq codec2 krakend radare2 coffeescript kubeless redis collector-sidecar kubernetes-cli redis@3.2 commandbox lcm redshift compcert lego restic conan libcouchbase riemann conjure-up libdazzle rocksdb conserver libdca rom-tools consul-template libdmtx root container-diff libedit rsstail convox libepoxy rubberband cromwell libewf ruby-build cython libgcrypt rust dartsim libgit2 s3-backer dbhash libgweather sagittarius-scheme dcd libmaa saldl dependency-check libngspice saxon dfix libphonenumber sbcl dfmt libplctag sbt dhall-json libpqxx sbt@0.13 dict libqalculate scrcpy diff-pdf libraw securefs diffoscope librealsense ser2net digdag libressl sfk distcc libspectrum shadowsocks-libev django-completion libunistring shellcheck dlib libvirt singular dmd libxmlsec1 siril dmtx-utils libxo sjk dnscrypt-proxy libzdb skaffold docfx lighttpd skafos docker-machine-completion linkerd snakemake docker-squash llnode sonar-scanner docker-swarm lmod spdlog doctl log4cplus speedtest-cli doitlive logcheck sphinx-doc draco logentries spotbugs druid logstalgia sqldiff dscanner logtalk sqlite dspdfviewer lsyncd sqlite-analyzer duck lua sqlmap dxpy macvim ssh-vault dynare mame sslyze elasticsearch@5.6 mariadb stella emacs maxwell storm emscripten memcached streamlink entr menhir strongswan erlang mercurial stunnel etcd midnight-commander subnetcalc ethereum mikutter syncthing exiftool mill sysbench exomizer minetest tarsnap-gui eye-d3 mingw-w64 tbb faas-cli mint telegraf fabric mkdocs teleport fantom mkvtoolnix terraform_landscape fdroidserver mlkit texmath fibjs mmseqs2 thefuck fio monero tinc firebase-cli mongo-c-driver tippecanoe flac mongo-cxx-driver tkdiff flow mongodb tmuxinator-completion fluent-bit monit tokei flyway mp3gain tor fmt mpd traefik fn mupdf transcrypt folly mupdf-tools treefrog fonttools mutt txr fork-cleaner mydumper typescript fribidi mypy uftp frugal mysql uhd fselect mysql++ unbound fstar mysql-connector-c++ urbit fuse-emulator mytop urh futhark n vala fwup nano vault fzf nanomsg vdirsyncer galen nanomsgxx vegeta gdal nativefier verilator gecode nco vert.x genact neofetch vim geoserver neovim vips ghc nesc vte3 gibo nginx wartremover gifski ngspice watch gimme node webpack gist node-build whois git node@6 wine git-annex node@8 winetricks git-lfs nodeenv wireguard-go git-town nomad wireguard-tools gitbucket notmuch wireshark gitlab-gem nsd wolfssl gitlab-runner nss wslay glib-networking ntl wtf glibmm ntopng x265 glm numpy xmrig gloox ocamlbuild xonsh gnome-builder odpi xtensor gnome-latex ohcount yarn gnupg open-mesh youtube-dl gnupg@1.4 open-scene-graph z3 gnuplot openblas zabbix go openimageio zita-convolver go@1.9 openrct2 zsh-autosuggestions gocryptfs opentsdb ==> Renamed Formulae wpcli-completion -> wp-cli-completion ==> Deleted Formulae aws-cloudsearch ecj luciddb
==> Installing dependencies for mysql: openssl ==> Installing mysql dependency: openssl ==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2o_1.high_sierr ######################################################################## 100.0% ==> Pouring openssl-1.0.2o_1.high_sierra.bottle.tar.gz ==> Caveats A CA file has been bootstrapped using certificates from the SystemRoots keychain. To add additional certificates (e.g. the certificates added in the System keychain), place .pem files in /usr/local/etc/openssl/certs
and run /usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local, because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.
If you need to have this software first in your PATH run: echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
For compilers to find this software you may need to set: LDFLAGS: -L/usr/local/opt/openssl/lib CPPFLAGS: -I/usr/local/opt/openssl/include
==> Summary 🍺 /usr/local/Cellar/openssl/1.0.2o_1: 1,791 files, 12.3MB ==> Installing mysql ==> Downloading https://homebrew.bintray.com/bottles/mysql-8.0.11.high_sierra.bo ######################################################################## 100.0% ==> Pouring mysql-8.0.11.high_sierra.bottle.tar.gz ==> /usr/local/Cellar/mysql/8.0.11/bin/mysqld --initialize-insecure --user=zelku ==> Caveats We've installed your MySQL database without a root password. To secure it run: mysql_secure_installation
MySQL is configured to only allow connections from localhost by default
To connect run: mysql -uroot
To have launchd start mysql now and restart at login: brew services start mysql Or, if you don't want/need a background service you can just run: mysql.server start ==> Summary 🍺 /usr/local/Cellar/mysql/8.0.11: 254 files, 232.6MB zelkun:~ zelkun$ |
mysql 실행
zelkun:mysql zelkun$ mysql.server --help Usage: mysql.server {start|stop|restart|reload|force-reload|status} [ MySQL server options ] zelkun:~ zelkun$ mysql.server start Starting MySQL . SUCCESS! zelkun:~ zelkun$ |
homebrew로 설치해서 그런가 환경설정 패널에 mysql이 없다
그러니 command로 실행해 줘야한다 시작과 종료만 알면 되지만 다양한 옵션을 제공
실행만 해서는 이용할 수 없으니 root로 접속해봄
zelkun:mysql zelkun$ mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 8.0.11 Homebrew
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> |
설치할때 패스워드 설정이 없어 계정만 root로 입력하니 접속됨
패스워드를 변경하고, 외부 접속 설정 등을 진행하고 사용하면 될듯
homebrew로 설치하는건 명령어 한줄로 진행해서 매우 편하지만
환경설정에 패널이 안나오는 관계로 맘에 안듦 삭제를 진행함
brew uninstall mysql
zelkun:mysql zelkun$ mysql.server stop Shutting down MySQL .. SUCCESS! zelkun:mysql zelkun$ brew uninstall mysql Uninstalling /usr/local/Cellar/mysql/8.0.11... (254 files, 232.6MB) zelkun:mysql zelkun$ |
일단 mysql을 종료시키고
brew를 통해 제거를 하니 바로 삭제되어 매우 편함
[macOS High Sierra] jupyter python2 pip 설치 실패기 (0) | 2018.06.16 |
---|---|
[macOS High Sierra] Mysql 8.x dmg install 설치 (0) | 2018.06.16 |
[macOS High Sierra]Homebrew install wget (0) | 2018.05.31 |
[maxOS High Sierra] Python pip install (0) | 2018.05.29 |
[maxOS High Sierra] JENV (Manage your Java environment) install homebrew & JAVA_HOME (0) | 2018.05.23 |
댓글 영역