[solved] MySQL server not Starting

Standard

MAMP headache on Mac

If you can’t figure out why the MySQL Server won’t turn on if you’re using MAMP to do local development work, here are two ways to go about it.


 

What worked for me

  1. Quit MAMP.

2. In the Finder, go to and delete the log files (in my case ib_logfile0 and ib_logfile1).

Applications/MAMP/db/mysql56

3. Restart MAMP.


So I tried the below fix and kept getting

No matching processes were found


What others used that didn’t work for me

Quit MAMP.

  1. Open Terminal (either open Spotlight (Cmd+Space) and type “terminal” or you can find Terminal in the /Applications/Utilities/folder)
  2. Then type this (will allow you to kill the mysqld process with security privileges of another users such as root)
ps aux | grep mysql 
lsof -i 
sudo killall -9 mysqld

4. Restart MAMP


Happy Developer!!
Advertisements

“Open In Terminal” action in Ubuntu 14.04

Standard

When I was installing Whatsapp on my Ubuntu PC, there was a step where I had to “Open in Terminal” but my Ubuntu 14.04 had no such option, so I did some digging and this is how you do it.

nautilus-open-terminal and nautilus-actions packages are available in Universe repository of Ubuntu 14.04. So run the below commands to enable universe repository and also to install above mentioned packages.

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install nautilus-open-terminal
sudo apt-get install nautilus-actions

Finally run

nautilus -q

command to quit nautilus. Now you can be able to see Open in terminal option on right-clicking.

Hope that helps.

Cheers!

Lima Kilo