Server Mamp



Jul 22, 2020 MAMP (which comes with no pronunciation guide and so I’m assuming it’s pronounced “potato”) is the second most tenured local server that I know of. Again with the acronyms here, MAMP stands for Mac Apache MySQL and PHP.

  1. Mamp Web Server
  2. Mamp For Mac
  3. Mamp Server Logs

This was a common problem with past versions of MAMP and it continues to happen for some users in version 4.x. Fortunately, the fix is easy. The problem is that when exiting MAMP the MySQL processes continue to run and are not stopped. This post has two solutions. The first solution of killing running processes has worked for me pretty much all the time. The second solution is from one of the comments below.

  1. Quit MAMP. You may have to force quit when this happens as it does not shut down correctly.
  2. To show any MySQL processes currently running, open Terminal and from the command prompt run the command below.
  3. Next, kill the MySQL processes by running the command below.
  4. To verify they no longer exist, pgrep for mysql again and you should not have any processes returned.
  5. Now Launch MAMP again and MySQL Server should start normally.
  • MAMP is a free, local server environment that can be installed under macOS and Windows with just a few clicks. MAMP provides them with all the tools they need to run WordPress on their desktop PC for testing or development purposes, for example.
  • MAMP installs a local server environment in a matter of seconds on your Windows or macOS computer. MAMP comes free of charge, and is easily installed. MAMP will not compromise any existing Apache installation already running on your system.
  • Stop server before creating new host, this should work i am using MAMP 3.5 and still this trick working:) – Mandeep Gill Mar 23 '16 at 10:15 Note, I had to use port 8890 instead of the standard 8888 when making requests.
  • Server: Apache: The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.

Alternative Solution

Mamp Web Server

Map

Mamp For Mac

If the above solution does not work, this method should.

Mamp Server Logs

  1. Stop Mamp and kill the mysql processes as above.
  2. Rename the ib_logfileN (N is the log numbers) files to something else. Don’t delete these as you may need to return to them. The path to these files may be different on your system. On my system, I would do the following:
  3. Restart MAMP and MySQL should start correctly.
    (Thanks to Daniel Erkalo for this alternative fix!)