MySQL with MAMP does not work with OSX Yosemite 10.10

前端 未结 15 701
灰色年华
灰色年华 2020-12-28 16:15

[EDIT] The last version of MAMP with the last version of OSX Yosemite works fine.

I installed the beta of Yosemite two month ago, no problem with MAMP. With the last

相关标签:
15条回答
  • 2020-12-28 16:52

    OP question was about MAMP.

    I had this issue after installing OSX Yosemite and fixing the envvars to _envvars in the bin/apache2/bin folder.

    Then I was getting this socket error. So I checked the error logs for mysql and noticed this:

    InnoDB: Unable to lock ./ibdata1, error: 35 InnoDB: Check that you do not already have another mysqld process

    gee I love error logs.

    I found the process mysqld in Activity Monitor and killed it. Restarted MAMP and bingo! It all seems to hook up now!

    0 讨论(0)
  • 2020-12-28 16:53

    Just to add to this thread, for those running Bitnami MAMP I had the same issue when upgrading to Yosemite (Mampstack-5.4.28-0). I solved it by going to

    Applications/Mampstack-(your version)/mysql/scripts/ctl.sh

    and adding the following

    MYSQL_PIDFILE = ....
    
    unset DYLD_LIBRARY_PATH <==== Add this
    
    MYSQL_START = ....
    

    MYSQL spun like silk. Hope this helps someone with the same problem.

    0 讨论(0)
  • 2020-12-28 16:57

    I have had the same issue and none of the above worked.

    The Apache server in MAMP wouldn't work on port 80, or 8080 (The default Apache ports). The issue is with Apache being enabled by default in Yosemite.

    Either: change the Apache port in MAMP (Not preferable if you want to use the default port), or unload the launch Daemon by typing the following into the terminal:

    sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

    0 讨论(0)
  • 2020-12-28 16:59

    I still needed to use envars so I was able to work around this by removing the following from the file. Found some errors when launching through terminal related to this

    if test "x$DYLD_LIBRARY_PATH" != "x" ; then
      DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH"
    else
      DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib"
    fi
    export DYLD_LIBRARY_PATH
    
    0 讨论(0)
  • I fixed this by uninstalling XAMMP and reinstalling. If you go with this approach make sure to back up any content you may have saved in the XAMPP folder.

    0 讨论(0)
  • 2020-12-28 17:00

    Edit the below file, with this command on Terminal.app:

    sudo vim /Applications/XAMPP/xamppfiles/mysql/scripts/ctl.sh

    On line #59, delete this:

    /Applications/XAMPP/xamppfiles/xampp startmysql > /dev/null &

    and put this

    /Applications/XAMPP/xamppfiles/bin/mysql.server start > /dev/null &

    (save the file: ESC :wq!)

    Restart All Servers on XAMPP.app (manager-osx)

    0 讨论(0)
提交回复
热议问题