Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
166 views
in Q2A Core by
edited

I'm getting the same error:

 

Could not establish database connection. Please check the username, password and hostname in the config file, and if necessary set up the appropriate MySQL user and privileges.

 

and I'm not sure what to do...

 

Edit: Okay, so I managed to get it working. I set the permission of the config file to 777 and now it works fine. New question though: do I have to leave the permission as 777? If not, what can I change it to, so it is safer?

 

Thanks.

1 Answer

0 votes
by
The config file only needs to be readable to the web server, so 755 is probably most appropriate.
...