I am trying to setup a new Phabricator installation. The MySQL credentials that I have configured in conf/local/local.json don't currently have access to any of the Phabricator databases (because the Phabricator databases do not yet exist). I am trying to initialize the database by passing the MySQL username and password via CLI flags, but I am getting the following error:
> /usr/local/src/phabricator/bin/storage upgrade --force --user=root --password=REDACTED MySQL Credentials Not Configured Unable to connect to MySQL using the configured credentials. You must configure standard credentials before you can upgrade storage. Run these commands to set up credentials: phabricator/ $ ./bin/config set mysql.host __host__ phabricator/ $ ./bin/config set mysql.user __username__ phabricator/ $ ./bin/config set mysql.pass __password__ These standard credentials are separate from any administrative credentials provided to this command with __--user__ or __--password__, and must be configured correctly before you can proceed. Raw MySQL Error: #1045: Access denied for user 'root'@'REDACTED' (using password: YES)
Steps to reproduce
- Run ./bin/config set mysql.pass $(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) to change mysql.pass to a bogus value.
- Run ./bin/storage upgrade --user=${USER} --password=${PASSWORD} where $USER and $PASSWORD are valid credentials.