Page MenuHomePhabricator

Can't connect to MySQL server
Closed, ResolvedPublic

Asked by ndriks on Sep 17 2015, 6:16 AM.

Details

I'm doing a fresh install of phabricator on VM with Centos 6.5, but after the installation, when I'm opening the webpage, I got

Unable to connect to MySQL!

Attempt to connect to root@127.0.0.1 failed with error #2003: Can't connect to MySQL server on '127.0.0.1' (13).

Make sure Phabricator and MySQL are correctly configured.

The mysql can be accessed from inside the VM and from the outside, and running the

./bin/storage upgrade

is also successfull.

What should I do?

Thank you for your help

Answers

johnny-bit
Updated 3,395 Days Ago

Try storage shell for connecting. Also, try resetting configuration related to mysq:

mysql.configuration-provider
mysql.host
mysql.implementation
mysql.pass
mysql.port
mysql.user

Make sure all are correct. Also, resign from using root. Use other user.

ndriks
Updated 3,395 Days Ago

nvm, it was a selinux problem.
disabling it solves it.

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.