MySQL Preference Pane is specifying a port number when it runs mysqld

As it says above. When I run mysqld using the preference pane for MySql, one of the arguments it is providing is --port=3307.

Does anyone know how I might go about changing this?

Operating System is OSX 10.10.4
MySQL version is 5.6.26


Solution 1:

You may change the port in the file com.oracle.oss.mysql.mysqld.plist file in /Library/LaunchDaemons by editing it with

sudo nano /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist

Change the port at

  <string>--port=3307</string>

near the end of the file to whatever you need it to be and reboot your Mac or restart the service.