Like many other posts I tried to switch my MAMP MySQL port from 8889
to 3306
and I am getting the following error in the sql log
2016-10-26 16:02:18 9681 [Note] Server hostname (bind-address): '*'; port: 3306
2016-10-26 16:02:18 9681 [Note] IPv6 is available.
2016-10-26 16:02:18 9681 [Note] - '::' resolves to '::';
2016-10-26 16:02:18 9681 [Note] Server socket created on IP: '::'.
2016-10-26 16:02:18 9681 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
2016-10-26 16:02:18 9681 [ERROR] Do you already have another mysqld server running on port: 3306 ?
I checked Active Monitor for mysqlld
(as suggested here setting mamp ports to 80 and 3306). No processes where running
I also tried lsof -i:3306
, which returns nothing.
I also tried a different port, and it is working, so the problem is not with MAMP but with the specific port.
I tried to check for pid in my terminal (as suggested here MAMP - mysql server won't start on port 3306 was found
Tried to restart, and did not work either
which mysql -> /Applications/MAMP/Library/bin/mysql
I do find another mysql installed under /usr/local/mysql, but it seems to be not in use.
I did try
/usr/local/mysql/support-files/mysql.server stop
ERROR! MySQL server PID file could not be found
and I do see
ps aux | grep mysqld
_mysql 100 0.0 1.0 2889832 171596 ?? Ss 2:59PM 0:01.80 /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid
but this is being added every time I try to start the server on mamp What else am I missing?