Skip to content

Instantly share code, notes, and snippets.

@PARKDONGWON
Created November 12, 2017 06:11
Show Gist options
  • Save PARKDONGWON/8e98456c1d9e6df66d24167ff5d10ae5 to your computer and use it in GitHub Desktop.
Save PARKDONGWON/8e98456c1d9e6df66d24167ff5d10ae5 to your computer and use it in GitHub Desktop.

먼저 mysql 서비스가 동작하고 있는지 확인을 해야함

ps aux | grep mysql

그 후 mysql 서비스를 kill 해줘야 함

  • 예제
bagdong-won-ui-MacBook-Pro:bin bagdong-won$ ps aux | grep mysql
bagdong-won       4396   0.0  0.0  2432804    768 s000  S+    3:09PM   0:00.00 grep mysql
_mysql            1352   0.0  2.0  2830124 171536   ??  Ss    3:01PM   0:00.44 /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid --keyring-file-data=/usr/local/mysql/keyring/keyring --early-plugin-load=keyring_file=keyring_file.so

위의 상황에서는 kill 1352명령어를 입력해줘야함

sudo kill 1352

맥에서 mysql 서비스 실행

brew services start mysql

mysql 에 root 유저로 접속

mysql -u root -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment