Setting mysql port doesn't work?

My question is similar to this. I see the page to setup mysql but when I run the commands, I get
Usage Exception: Local path "conf/local/local.json" is not writable. This file must be writable so that "bin/config" can store configuration.

I created the file local.json in conf/local and just put in {}.

I set chmod 755 to conf, local, and local.json, but I still get the error. Any ideas?

  1. Make sure the file (and all path) is owned by the user you run bin/config as.
  2. If you have AppArmor or SELinux configured, see https://secure.phabricator.com/T4947.