MAMP can’t start MySQL: InnoDB: Unable to lock ./ibdata1, error: 35

If you have trouble where MAMP couldn’t start MySQL and you’re seeing lots of errors like this

InnoDB: Unable to lock ./ibdata1, error: 35

in terminal (* are notes, not commands to run)

sudo launchctl unload -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
* stops the system mysql in case it got started for some reason

ps -ef | egrep "mysql|PID"
* searches for all mysql processes and lists them out
* returns like this:

UID   PID  PPID   C STIME   TTY           TIME CMD
501 19412     1   0  8:41AM ??         0:00.05 /bin/sh /Applications/MAMP/Library/bin/[... ]
501 19708 19412   0  8:41AM ??         0:00.66 /Applications/MAMP/Library/bin/[...]
501 23191 21117   0  9:04AM ttys001    0:00.00 egrep mysql|PID

* you’re not interested in the last one, cuz that’s just the command you just ran
* you want to note the values under PID (bolded)  for any other ones, then…

kill -9 [PID]
* run this command for each PID (bolded) you made note of above, replacing [PID] (including brackets) with the appropriate PID now try starting mysql in mamp

success !