ERROR! The server quit without updating PID file

  • 증상 :

    맥에서 mySql( 5.7 ) 설치 에러

    brew install mysql@5.7
    설치 완료
    mysql.server start 시

    Starting MySQL
    . ERROR! The server quit without updating PID file (/usr/local/var/mysql/~~~~~~~).

    발생


  • 원인:

    mysql 를 여러번 설치/삭제하면서 잔재 폴더가 존재해서 설치시 에러가 발생하던 부분을 간과

    해당에러
    [ERROR] --initialize specified but the data directory has files in it. Aborting.
    [ERROR] Aborting


  • 해결 :

    /usr/local/Cellar/mysql@5.7/5.7.29/bin/mysqld
    --initialize-insecure
    --user=zhuyeel
    --basedir=/usr/local/Cellar/mysql@5.7/5.7.29
    --datadir=/usr/local/var/mysql
    --tmpdir=/tmp

    에러 내용 중 --datadir=/usr/local/var/mysql 부분에 해당하는 폴더 삭제 ( rm -rf )

    mysql 재설치 후 정상 구동 확인

Subscribe to X세대 신입사원

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe
774-86-01972 cinnabar.3d@gmail.com