search
LoginSignup
7

More than 5 years have passed since last update.

posted at

updated at

MacのMAMPのMySQLServerが起動しない時

その1

  1. MAMPを終了させる
  2. /Applications/MAMP/confに移動
  3. vim my.cnfして以下をコピペ

    /Applications/MAMP/conf/my.cnf
    [mysqld]
    default-storage-engine = InnoDB
    innodb
    innodb_force_recovery = 1
    
  4. MAMP起動してMySQLServer起動

  5. 起動したら再度落とす

  6. 上記のmy.cnf削除

  7. MysqlServer起動😇

その2

このコマンドを叩く。

ps aux | grep '/Applications/MAMP/bin/mysqld_safe' | grep -v grep | cut -d ' ' -f 5 | xargs kill -9   

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
7