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

Hello All,

I have strange mysql error,

sometimes on my website show this 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.

when i refresh then page work fine sometime and again after sometimes show me this error ?

Thanks.

 

by
edited by
1. What is value of "QA_PERSISTENT_CONN_DB" in qa-config.php on your Q2A root? false or true?
2. Is there detailed information about MySQL connection error in Apache error log on your server?
3. What is value of "max_connections" of your MySQL server.
    Example of console command:
    mysql> show variables like 'max_connections';

Please log in or register to answer this question.

...